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}