diff --git a/frontend/src/components/aiChatPage/ChatLogContainer/ChatLogList/ChatLogGroup.tsx b/frontend/src/components/aiChatPage/ChatLogContainer/ChatLogList/ChatLogGroup.tsx index 89e58d3f..a37c9a7a 100644 --- a/frontend/src/components/aiChatPage/ChatLogContainer/ChatLogList/ChatLogGroup.tsx +++ b/frontend/src/components/aiChatPage/ChatLogContainer/ChatLogList/ChatLogGroup.tsx @@ -1,5 +1,25 @@ -interface ChatLogGroupProps {} +import { ChatLogItem } from './ChatLogItem'; -export function ChatLogGroup({}: ChatLogGroupProps) { - return ; +interface ChatLogGroupProps { + date: string; + rooms: { + id: string; + title: string; + createdAt: string; + }[]; +} + +export function ChatLogGroup({ date, rooms }: ChatLogGroupProps) { + return ( + + ); } diff --git a/frontend/src/components/aiChatPage/ChatLogContainer/ChatLogList/ChatLogItem.tsx b/frontend/src/components/aiChatPage/ChatLogContainer/ChatLogList/ChatLogItem.tsx index 32f6559e..bbe76bef 100644 --- a/frontend/src/components/aiChatPage/ChatLogContainer/ChatLogList/ChatLogItem.tsx +++ b/frontend/src/components/aiChatPage/ChatLogContainer/ChatLogList/ChatLogItem.tsx @@ -18,7 +18,7 @@ export function ChatLogItem({ id, title }: ChatLogItemProps) { className="group w-full h-30 display-medium14 text-white p-5 rounded-lg flex justify-between items-center hover:surface-default" onClick={handleClick} > - {title ?? '임시 타이틀~'} + {title} {/*
- {list.map(({ id, title }) => ( - ( + ))}
diff --git a/frontend/src/pages/HomePage/HomePage.tsx b/frontend/src/pages/HomePage/HomePage.tsx index 2297ea0f..3ee8c666 100644 --- a/frontend/src/pages/HomePage/HomePage.tsx +++ b/frontend/src/pages/HomePage/HomePage.tsx @@ -19,14 +19,16 @@ export function HomePage() { return ( <> -
- - +
+
+ + +
); diff --git a/frontend/src/stores/queries/getChatLogListQuery.ts b/frontend/src/stores/queries/getChatLogListQuery.ts index 75114a63..9542414a 100644 --- a/frontend/src/stores/queries/getChatLogListQuery.ts +++ b/frontend/src/stores/queries/getChatLogListQuery.ts @@ -2,8 +2,12 @@ import { useQuery } from '@tanstack/react-query'; import axios from 'axios'; export type ChatLogListResponse = { - id: string; - title: string; + date: string; + rooms: { + id: string; + title: string; + createdAt: string; + }[]; }[]; export function getChatLogListQuery() {