feat(core): move help island to workbench (#6535)

This commit is contained in:
EYHN
2024-04-15 02:29:15 +00:00
parent 1656b33ce3
commit d11d69ddf6
2 changed files with 11 additions and 8 deletions

View File

@@ -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}
/>
</>
);
};

View File

@@ -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>