Skip to content

The Open Standard for Generative UI

update fullscreen

abhishek1952c30ae2ed
diff --git a/frontend-sdk/packages/react-ui/src/components/Fullscreen.tsx b/frontend-sdk/packages/react-ui/src/components/Fullscreen.tsx
index 5f966e61c..ce2bb9141 100644
--- a/frontend-sdk/packages/react-ui/src/components/Fullscreen.tsx
+++ b/frontend-sdk/packages/react-ui/src/components/Fullscreen.tsx
@@ -108,10 +108,13 @@ export const SearchInput = ({ className }: { className?: string }) => {
};
export const NewChatButton = ({ className }: { className?: string }) => {
- const { switchToNew } = useThreadListActions();
+ const { switchToNewThread } = useThreadListActions();
return (
- <button onClick={switchToNew} className={clsx("cui-fullscreen-new-chat-button", className)}>
+ <button
+ onClick={switchToNewThread}
+ className={clsx("cui-fullscreen-new-chat-button", className)}
+ >
<Plus />
New Chat
</button>