From ab1da0972605b65034ad1cb6b2fe313b508860c8 Mon Sep 17 00:00:00 2001 From: GCWing Date: Fri, 13 Mar 2026 14:33:46 +0800 Subject: [PATCH] fix: fix tsc EditorGroup\useTabLifecycle\WorkspaceBody --- .../panels/content-canvas/editor-area/EditorGroup.tsx | 2 -- .../components/panels/content-canvas/hooks/useTabLifecycle.ts | 2 -- src/web-ui/src/app/layout/WorkspaceBody.tsx | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/web-ui/src/app/components/panels/content-canvas/editor-area/EditorGroup.tsx b/src/web-ui/src/app/components/panels/content-canvas/editor-area/EditorGroup.tsx index 48ff5c82..12de0afe 100644 --- a/src/web-ui/src/app/components/panels/content-canvas/editor-area/EditorGroup.tsx +++ b/src/web-ui/src/app/components/panels/content-canvas/editor-area/EditorGroup.tsx @@ -8,8 +8,6 @@ import { useTranslation } from 'react-i18next'; import { TabBar } from '../tab-bar'; import { DropZone } from './DropZone'; import FlexiblePanel from '../../base/FlexiblePanel'; -import { createLogger } from '@/shared/utils/logger'; -const _dbgLog = createLogger('EditorGroup'); import type { EditorGroupId, EditorGroupState, diff --git a/src/web-ui/src/app/components/panels/content-canvas/hooks/useTabLifecycle.ts b/src/web-ui/src/app/components/panels/content-canvas/hooks/useTabLifecycle.ts index 0d5e1704..6491d91c 100644 --- a/src/web-ui/src/app/components/panels/content-canvas/hooks/useTabLifecycle.ts +++ b/src/web-ui/src/app/components/panels/content-canvas/hooks/useTabLifecycle.ts @@ -14,8 +14,6 @@ import type { EditorGroupId, PanelContent, CreateTabEventDetail } from '../types import { TAB_EVENTS } from '../types'; import { useI18n } from '@/infrastructure/i18n'; import { drainPendingTabs } from '@/shared/services/pendingTabQueue'; -import { createLogger } from '@/shared/utils/logger'; -const _dbgLog = createLogger('useTabLifecycle'); interface UseTabLifecycleOptions { /** App mode / target canvas */ mode?: 'agent' | 'project' | 'git'; diff --git a/src/web-ui/src/app/layout/WorkspaceBody.tsx b/src/web-ui/src/app/layout/WorkspaceBody.tsx index b0b10f6d..02170fe1 100644 --- a/src/web-ui/src/app/layout/WorkspaceBody.tsx +++ b/src/web-ui/src/app/layout/WorkspaceBody.tsx @@ -10,7 +10,7 @@ * SceneViewport (flex:1 — active scene content) */ -import React, { useCallback, useRef, useState } from 'react'; +import React, { useCallback, useState } from 'react'; import { useCurrentWorkspace } from '../../infrastructure/contexts/WorkspaceContext'; import { NavBar } from '../components/NavBar'; import NavPanel from '../components/NavPanel/NavPanel';