diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index e1008d4e..d22d63b6 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -19,7 +19,6 @@ import * as Tooltip from '@radix-ui/react-tooltip'; import styles from './BaseChat.module.scss'; import type { ProviderInfo } from '~/utils/types'; -import WithTooltip from '~/components/ui/Tooltip'; import { ExportChatButton } from '~/components/chat/ExportChatButton'; const EXAMPLE_PROMPTS = [ @@ -27,7 +26,7 @@ const EXAMPLE_PROMPTS = [ { text: 'Build a simple blog using Astro' }, { text: 'Create a cookie consent form using Material UI' }, { text: 'Make a space invaders game' }, - { text: 'How do I center a div?' } + { text: 'How do I center a div?' }, ]; // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -110,7 +109,6 @@ export const BaseChat = React.forwardRef( enhancingPrompt = false, promptEnhanced = false, messages, - description, input = '', model, setModel, @@ -121,9 +119,9 @@ export const BaseChat = React.forwardRef( enhancePrompt, handleStop, importChat, - exportChat + exportChat, }, - ref + ref, ) => { const TEXTAREA_MAX_HEIGHT = chatStarted ? 400 : 200; const [apiKeys, setApiKeys] = useState>({}); @@ -163,7 +161,7 @@ export const BaseChat = React.forwardRef( expires: 30, // 30 days secure: true, // Only send over HTTPS sameSite: 'strict', // Protect against CSRF - path: '/' // Accessible across the site + path: '/', // Accessible across the site }); } catch (error) { console.error('Error saving API keys to cookies:', error); @@ -176,7 +174,7 @@ export const BaseChat = React.forwardRef( ref={ref} className={classNames( styles.BaseChat, - 'relative flex flex-col lg:flex-row h-full w-full overflow-hidden bg-bolt-elements-background-depth-1' + 'relative flex flex-col lg:flex-row h-full w-full overflow-hidden bg-bolt-elements-background-depth-1', )} data-chat-visible={showChat} > @@ -195,7 +193,7 @@ export const BaseChat = React.forwardRef( )}
@@ -215,8 +213,8 @@ export const BaseChat = React.forwardRef( 'bg-bolt-elements-background-depth-2 p-3 rounded-lg border border-bolt-elements-borderColor relative w-full max-w-chat mx-auto z-prompt mb-6', { 'sticky bottom-2': chatStarted, - }, - )} + }, + )} > ( provider={provider} setProvider={setProvider} providerList={PROVIDER_LIST} - apiKeys={apiKeys} - /> + apiKeys={apiKeys} + /> {provider && ( updateApiKey(provider.name, key)}/> - )} + setApiKey={(key) => updateApiKey(provider.name, key)} + /> + )}
-