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