diff --git a/ui/desktop/src/Chat.tsx b/ui/desktop/src/Chat.tsx index dd318df935..1bbe3e412f 100644 --- a/ui/desktop/src/Chat.tsx +++ b/ui/desktop/src/Chat.tsx @@ -24,8 +24,6 @@ export default function Chat({ chats, setChats, selectedChatId, setSelectedChatI initialMessages: chat.messages }) - const useChatData = { messages, input, handleInputChange, handleSubmit }; - useEffect(() => { const updatedChats = [...chats] updatedChats.find((c) => c.id === selectedChatId).messages = messages @@ -55,7 +53,7 @@ export default function Chat({ chats, setChats, selectedChatId, setSelectedChatI {message.role === 'user' ? ( ) : ( - + )} ))} diff --git a/ui/desktop/src/components/GooseMessage.tsx b/ui/desktop/src/components/GooseMessage.tsx index 93379ad695..0ea41b89e9 100644 --- a/ui/desktop/src/components/GooseMessage.tsx +++ b/ui/desktop/src/components/GooseMessage.tsx @@ -2,7 +2,7 @@ import React from 'react' import ToolInvocation from './ToolInvocation' import ReactMarkdown from 'react-markdown' -export default function GooseMessage({ message, useChatData }) { +export default function GooseMessage({ message }) { return (
@@ -12,8 +12,6 @@ export default function GooseMessage({ message, useChatData }) { ))}
diff --git a/ui/desktop/src/components/SplashPills.tsx b/ui/desktop/src/components/SplashPills.tsx index fb52a4cbe2..9fbe0ec385 100644 --- a/ui/desktop/src/components/SplashPills.tsx +++ b/ui/desktop/src/components/SplashPills.tsx @@ -22,7 +22,7 @@ export default function SplashPills({ append }) {
- +
)