mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00: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 { useCallback, useEffect, useRef } from 'react';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
@@ -43,12 +44,16 @@ export const WorkbenchRoot = () => {
|
||||
}, [basename, workbench.basename$]);
|
||||
|
||||
return (
|
||||
<SplitView
|
||||
className={styles.workbenchRootContainer}
|
||||
views={views}
|
||||
renderer={panelRenderer}
|
||||
onMove={onMove}
|
||||
/>
|
||||
<>
|
||||
<HubIsland />
|
||||
|
||||
<SplitView
|
||||
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 { 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 => {
|
||||
<WorkspaceLayout>
|
||||
<WorkbenchRoot />
|
||||
<RightSidebarContainer />
|
||||
<HubIsland />
|
||||
</WorkspaceLayout>
|
||||
</AffineErrorBoundary>
|
||||
</Suspense>
|
||||
|
||||
Reference in New Issue
Block a user