mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 09:52:49 +08:00
refactor(core): move notification center top level (#4331)
This commit is contained in:
@@ -3,6 +3,7 @@ import '@affine/component/theme/theme.css';
|
|||||||
import '@toeverything/components/style.css';
|
import '@toeverything/components/style.css';
|
||||||
|
|
||||||
import { AffineContext } from '@affine/component/context';
|
import { AffineContext } from '@affine/component/context';
|
||||||
|
import { NotificationCenter } from '@affine/component/notification-center';
|
||||||
import { WorkspaceFallback } from '@affine/component/workspace';
|
import { WorkspaceFallback } from '@affine/component/workspace';
|
||||||
import { CacheProvider } from '@emotion/react';
|
import { CacheProvider } from '@emotion/react';
|
||||||
import { getCurrentStore } from '@toeverything/infra/atom';
|
import { getCurrentStore } from '@toeverything/infra/atom';
|
||||||
@@ -52,6 +53,7 @@ export const App = memo(function App() {
|
|||||||
<AffineContext store={getCurrentStore()}>
|
<AffineContext store={getCurrentStore()}>
|
||||||
<CloudSessionProvider>
|
<CloudSessionProvider>
|
||||||
<DebugProvider>
|
<DebugProvider>
|
||||||
|
{runtimeConfig.enableNotificationCenter && <NotificationCenter />}
|
||||||
<RouterProvider
|
<RouterProvider
|
||||||
fallbackElement={<WorkspaceFallback key="RouterFallback" />}
|
fallbackElement={<WorkspaceFallback key="RouterFallback" />}
|
||||||
router={router}
|
router={router}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import {
|
|||||||
appSidebarResizingAtom,
|
appSidebarResizingAtom,
|
||||||
} from '@affine/component/app-sidebar';
|
} from '@affine/component/app-sidebar';
|
||||||
import { BlockHubWrapper } from '@affine/component/block-hub';
|
import { BlockHubWrapper } from '@affine/component/block-hub';
|
||||||
import { NotificationCenter } from '@affine/component/notification-center';
|
|
||||||
import type { DraggableTitleCellData } from '@affine/component/page-list';
|
import type { DraggableTitleCellData } from '@affine/component/page-list';
|
||||||
import { StyledTitleLink } from '@affine/component/page-list';
|
import { StyledTitleLink } from '@affine/component/page-list';
|
||||||
import {
|
import {
|
||||||
@@ -285,7 +284,6 @@ export const WorkspaceLayoutInner = ({
|
|||||||
<PageListTitleCellDragOverlay />
|
<PageListTitleCellDragOverlay />
|
||||||
</DndContext>
|
</DndContext>
|
||||||
<QuickSearch />
|
<QuickSearch />
|
||||||
{runtimeConfig.enableNotificationCenter && <NotificationCenter />}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user