From f4686c0ed6604bbfffd6e1c21b133e10d24500d6 Mon Sep 17 00:00:00 2001 From: Haileyesus Date: Mon, 2 Mar 2026 16:45:43 +0300 Subject: [PATCH] refactor(quick-settings-panel): restructure QuickSettingsPanel import and create index file --- src/components/QuickSettingsPanel.tsx | 5 ----- src/components/chat/view/ChatInterface.tsx | 3 ++- src/components/quick-settings-panel/index.ts | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 src/components/QuickSettingsPanel.tsx create mode 100644 src/components/quick-settings-panel/index.ts diff --git a/src/components/QuickSettingsPanel.tsx b/src/components/QuickSettingsPanel.tsx deleted file mode 100644 index 564628fe..00000000 --- a/src/components/QuickSettingsPanel.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import QuickSettingsPanelView from './quick-settings-panel/view/QuickSettingsPanelView'; - -export default function QuickSettingsPanel() { - return ; -} diff --git a/src/components/chat/view/ChatInterface.tsx b/src/components/chat/view/ChatInterface.tsx index 65c9043b..36ce5a8e 100644 --- a/src/components/chat/view/ChatInterface.tsx +++ b/src/components/chat/view/ChatInterface.tsx @@ -1,5 +1,5 @@ import React, { useCallback, useEffect, useRef } from 'react'; -import QuickSettingsPanel from '../../QuickSettingsPanel'; +import { QuickSettingsPanel } from '../../quick-settings-panel'; import { useTasksSettings } from '../../../contexts/TasksSettingsContext'; import { useTranslation } from 'react-i18next'; import ChatMessagesPane from './subcomponents/ChatMessagesPane'; @@ -11,6 +11,7 @@ import { useChatRealtimeHandlers } from '../hooks/useChatRealtimeHandlers'; import { useChatComposerState } from '../hooks/useChatComposerState'; import type { Provider } from '../types/types'; + type PendingViewSession = { sessionId: string | null; startedAt: number; diff --git a/src/components/quick-settings-panel/index.ts b/src/components/quick-settings-panel/index.ts new file mode 100644 index 00000000..a83d06d6 --- /dev/null +++ b/src/components/quick-settings-panel/index.ts @@ -0,0 +1 @@ +export { default as QuickSettingsPanel } from './view/QuickSettingsPanelView'; \ No newline at end of file