diff --git a/src/apps/chat/AppChat.tsx b/src/apps/chat/AppChat.tsx index 8b079c14a..551df3de8 100644 --- a/src/apps/chat/AppChat.tsx +++ b/src/apps/chat/AppChat.tsx @@ -24,7 +24,7 @@ import { PanelResizeInset } from '~/common/components/panes/GoodPanelResizeHandl import { PreferencesTab, useOptimaLayout, usePluggableOptimaLayout } from '~/common/layout/optima/useOptimaLayout'; import { ScrollToBottom } from '~/common/scroll-to-bottom/ScrollToBottom'; import { ScrollToBottomButton } from '~/common/scroll-to-bottom/ScrollToBottomButton'; -import { addSnackbar } from '~/common/components/useSnackbarsStore'; +import { addSnackbar, removeSnackbar } from '~/common/components/useSnackbarsStore'; import { createDMessageFromFragments, createDMessageTextContent, DMessageMetadata, duplicateDMessageMetadata } from '~/common/stores/chat/chat.message'; import { getConversation, getConversationSystemPurposeId, useConversation } from '~/common/stores/chat/store-chats'; import { themeBgAppChatComposer } from '~/common/app.theme'; diff --git a/src/apps/chat/components/composer/Composer.tsx b/src/apps/chat/components/composer/Composer.tsx index 5a98bac11..23893edb5 100644 --- a/src/apps/chat/components/composer/Composer.tsx +++ b/src/apps/chat/components/composer/Composer.tsx @@ -280,6 +280,7 @@ export function Composer(props: { }, [systemPurposeId, targetConversationId]); const handleDrawOptionsClicked = React.useCallback(() => { + // TODO: remove context dependency here openPreferencesTab(PreferencesTab.Draw); }, [openPreferencesTab]);