Просмотр исходного кода

useAiAssistantChatSidebar -> useAiAssistantSidebar (2)

Shun Miyazawa 1 год назад
Родитель
Сommit
78d025bf3e

+ 2 - 2
apps/app/src/client/components/PageEditor/EditorNavbarBottom/EditorAssistantToggleButton.tsx

@@ -2,11 +2,11 @@ import { useCallback } from 'react';
 
 import { useTranslation } from 'next-i18next';
 
-import { useAiAssistantChatSidebar } from '~/features/openai/client/stores/ai-assistant';
+import { useAiAssistantSidebar } from '~/features/openai/client/stores/ai-assistant';
 
 export const EditorAssistantToggleButton = (): JSX.Element => {
   const { t } = useTranslation();
-  const { data, close } = useAiAssistantChatSidebar();
+  const { data, close } = useAiAssistantSidebar();
   const { isOpened } = data ?? {};
 
   const toggle = useCallback(() => {