diff --git a/packages/frontend/core/src/modules/workbench/view/workbench-root.tsx b/packages/frontend/core/src/modules/workbench/view/workbench-root.tsx index bebf0382743f..66ae57fa46dc 100644 --- a/packages/frontend/core/src/modules/workbench/view/workbench-root.tsx +++ b/packages/frontend/core/src/modules/workbench/view/workbench-root.tsx @@ -1,3 +1,4 @@ +import { HubIsland } from '@affine/core/components/affine/hub-island'; import { useLiveData, useService } from '@toeverything/infra'; import { useCallback, useEffect, useRef } from 'react'; import { useLocation } from 'react-router-dom'; @@ -43,12 +44,16 @@ export const WorkbenchRoot = () => { }, [basename, workbench.basename$]); return ( - + <> + + + + ); }; diff --git a/packages/frontend/core/src/pages/workspace/index.tsx b/packages/frontend/core/src/pages/workspace/index.tsx index 2588e637cd7b..9afdbaad6cb5 100644 --- a/packages/frontend/core/src/pages/workspace/index.tsx +++ b/packages/frontend/core/src/pages/workspace/index.tsx @@ -13,7 +13,6 @@ import { Suspense, useEffect, useMemo } from 'react'; import { useParams } from 'react-router-dom'; import { AffineErrorBoundary } from '../../components/affine/affine-error-boundary'; -import { HubIsland } from '../../components/affine/hub-island'; import { WorkspaceFallback } from '../../components/workspace'; import { WorkspaceLayout } from '../../layouts/workspace-layout'; import { RightSidebarContainer } from '../../modules/right-sidebar'; @@ -115,7 +114,6 @@ export const Component = (): ReactElement => { -