Skip to content

Commit

Permalink
added missing reset property to upload page
Browse files Browse the repository at this point in the history
  • Loading branch information
mmo80 committed Jul 6, 2024
1 parent 0303a59 commit e533255
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/upload/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export default function Page() {
}
};

const onResetChat = () => {
setChats([]);
};

return (
<main className="flex h-full flex-col lg:flex-row">
<section className="hidden basis-2/5 overflow-y-scroll px-3 sm:block">
Expand Down Expand Up @@ -175,7 +179,7 @@ export default function Page() {
</div>
)}

<Chat isFetchLoading={isFetchLoading} chats={chats} mainDiv={mainDiv} />
<Chat isFetchLoading={isFetchLoading} chats={chats} mainDiv={mainDiv} onReset={onResetChat} />
</div>
<div className="sticky bottom-0 py-3">
<ChatInput
Expand Down

0 comments on commit e533255

Please sign in to comment.