mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +08:00
feat(core): move help island to workbench (#6535)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { HubIsland } from '@affine/core/components/affine/hub-island';
|
||||||
import { useLiveData, useService } from '@toeverything/infra';
|
import { useLiveData, useService } from '@toeverything/infra';
|
||||||
import { useCallback, useEffect, useRef } from 'react';
|
import { useCallback, useEffect, useRef } from 'react';
|
||||||
import { useLocation } from 'react-router-dom';
|
import { useLocation } from 'react-router-dom';
|
||||||
@@ -43,12 +44,16 @@ export const WorkbenchRoot = () => {
|
|||||||
}, [basename, workbench.basename$]);
|
}, [basename, workbench.basename$]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SplitView
|
<>
|
||||||
className={styles.workbenchRootContainer}
|
<HubIsland />
|
||||||
views={views}
|
|
||||||
renderer={panelRenderer}
|
<SplitView
|
||||||
onMove={onMove}
|
className={styles.workbenchRootContainer}
|
||||||
/>
|
views={views}
|
||||||
|
renderer={panelRenderer}
|
||||||
|
onMove={onMove}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import { Suspense, useEffect, useMemo } from 'react';
|
|||||||
import { useParams } from 'react-router-dom';
|
import { useParams } from 'react-router-dom';
|
||||||
|
|
||||||
import { AffineErrorBoundary } from '../../components/affine/affine-error-boundary';
|
import { AffineErrorBoundary } from '../../components/affine/affine-error-boundary';
|
||||||
import { HubIsland } from '../../components/affine/hub-island';
|
|
||||||
import { WorkspaceFallback } from '../../components/workspace';
|
import { WorkspaceFallback } from '../../components/workspace';
|
||||||
import { WorkspaceLayout } from '../../layouts/workspace-layout';
|
import { WorkspaceLayout } from '../../layouts/workspace-layout';
|
||||||
import { RightSidebarContainer } from '../../modules/right-sidebar';
|
import { RightSidebarContainer } from '../../modules/right-sidebar';
|
||||||
@@ -115,7 +114,6 @@ export const Component = (): ReactElement => {
|
|||||||
<WorkspaceLayout>
|
<WorkspaceLayout>
|
||||||
<WorkbenchRoot />
|
<WorkbenchRoot />
|
||||||
<RightSidebarContainer />
|
<RightSidebarContainer />
|
||||||
<HubIsland />
|
|
||||||
</WorkspaceLayout>
|
</WorkspaceLayout>
|
||||||
</AffineErrorBoundary>
|
</AffineErrorBoundary>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
|||||||
Reference in New Issue
Block a user