Skip to content

Commit

Permalink
feat(core): move help island to workbench (#6535)
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Apr 15, 2024
1 parent 1656b33 commit d11d69d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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}
/>
</>
);
};

Expand Down
2 changes: 0 additions & 2 deletions packages/frontend/core/src/pages/workspace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -115,7 +114,6 @@ export const Component = (): ReactElement => {
<WorkspaceLayout>
<WorkbenchRoot />
<RightSidebarContainer />
<HubIsland />
</WorkspaceLayout>
</AffineErrorBoundary>
</Suspense>
Expand Down

0 comments on commit d11d69d

Please sign in to comment.