refactor(core): move notification center top level (#4331)

This commit is contained in:
Alex Yang
2023-09-12 21:01:31 -07:00
committed by GitHub
parent f445604e5e
commit 37e5c464d6
2 changed files with 2 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import '@affine/component/theme/theme.css';
import '@toeverything/components/style.css';
import { AffineContext } from '@affine/component/context';
import { NotificationCenter } from '@affine/component/notification-center';
import { WorkspaceFallback } from '@affine/component/workspace';
import { CacheProvider } from '@emotion/react';
import { getCurrentStore } from '@toeverything/infra/atom';
@@ -52,6 +53,7 @@ export const App = memo(function App() {
<AffineContext store={getCurrentStore()}>
<CloudSessionProvider>
<DebugProvider>
{runtimeConfig.enableNotificationCenter && <NotificationCenter />}
<RouterProvider
fallbackElement={<WorkspaceFallback key="RouterFallback" />}
router={router}

View File

@@ -4,7 +4,6 @@ import {
appSidebarResizingAtom,
} from '@affine/component/app-sidebar';
import { BlockHubWrapper } from '@affine/component/block-hub';
import { NotificationCenter } from '@affine/component/notification-center';
import type { DraggableTitleCellData } from '@affine/component/page-list';
import { StyledTitleLink } from '@affine/component/page-list';
import {
@@ -285,7 +284,6 @@ export const WorkspaceLayoutInner = ({
<PageListTitleCellDragOverlay />
</DndContext>
<QuickSearch />
{runtimeConfig.enableNotificationCenter && <NotificationCenter />}
</>
);
};