diff --git a/components/chat-list.tsx b/components/chat-list.tsx index 105d80a..d4b60d9 100644 --- a/components/chat-list.tsx +++ b/components/chat-list.tsx @@ -7,9 +7,7 @@ export function ChatList({ messages }: { messages: any[] }) { return (
-
- -
+ {messages.map((message, index) => (
{message.display}
))} diff --git a/components/origin.tsx b/components/origin.tsx index 1801e32..f09d4a1 100644 --- a/components/origin.tsx +++ b/components/origin.tsx @@ -24,21 +24,20 @@ export default function Origin() { }, [searchParams]); return ( -
- {reportID && - origin.url && ( - - 資料來源: - - {getDomainFromURL(origin.url)} - - - )} +
+ {reportID && origin.url && ( + + 資料來源: + + {getDomainFromURL(origin.url)} + + + )}
); }