Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Fuks committed Feb 19, 2024
1 parent 0d82e5e commit 46a8de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { ReactElement } from 'react';
import { DeleteOutlined, GithubOutlined, MessageOutlined, PlusOutlined } from '@ant-design/icons';
import { ChatMessageMap } from '@ant-design/pro-chat';
import { ChatMessage } from '@ant-design/pro-chat';
import { Button, Flex, Layout, Menu, Space } from 'antd';
import { Content } from 'antd/es/layout/layout';
import Sider from 'antd/es/layout/Sider';
Expand Down Expand Up @@ -108,7 +108,7 @@ const Home = async ({
</Flex>
</Sider>
<Content style={{ minHeight: 280 }}>
<Chat key={chatId} initialChats={JSON.parse(activeChat.messages) as ChatMessageMap} chatId={chatId} />
<Chat key={chatId} initialChats={JSON.parse(activeChat.messages) as ChatMessage[]} chatId={chatId} />
</Content>
</Layout>
);
Expand Down

0 comments on commit 46a8de8

Please sign in to comment.