From 701a6e413fffe49cd5e23ee035db986d0015582b Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Wed, 15 Mar 2023 17:31:00 +0000 Subject: [PATCH] fix: compile erros --- app/components/home.tsx | 4 ++-- app/components/ui-lib.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index 27f9ab9..931ebe6 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -311,8 +311,8 @@ function exportMessages(messages: Message[], topic: string) { title: "导出聊天记录为 Markdown", children:
{mdText}
, actions: [ - } bordered text="全部复制" onClick={() => copyToClipboard(mdText)} />, - } bordered text="下载文件" onClick={() => downloadAs(mdText, filename)} /> + } bordered text="全部复制" onClick={() => copyToClipboard(mdText)} />, + } bordered text="下载文件" onClick={() => downloadAs(mdText, filename)} /> ] }) } diff --git a/app/components/ui-lib.tsx b/app/components/ui-lib.tsx index 8418b90..34604d4 100644 --- a/app/components/ui-lib.tsx +++ b/app/components/ui-lib.tsx @@ -71,7 +71,7 @@ export function Modal(props: ModalProps) {
- {props.actions?.map(action =>
{action}
)} + {props.actions?.map((action, i) =>
{action}
)}