fix(core): move openinapp guard to workspace scope (#9751)

This commit is contained in:
pengx17
2025-01-19 10:00:04 +00:00
parent 6ba802fb17
commit 7713920b71
4 changed files with 22 additions and 19 deletions
+5 -8
View File
@@ -4,7 +4,6 @@ import { router } from '@affine/core/desktop/router';
import { configureCommonModules } from '@affine/core/modules';
import { I18nProvider } from '@affine/core/modules/i18n';
import { LifecycleService } from '@affine/core/modules/lifecycle';
import { OpenInAppGuard } from '@affine/core/modules/open-in-app';
import {
configureLocalStorageStateStorageImpls,
NbstoreProvider,
@@ -100,13 +99,11 @@ export function App() {
<CacheProvider value={cache}>
<I18nProvider>
<AffineContext store={getCurrentStore()}>
<OpenInAppGuard>
<RouterProvider
fallbackElement={<AppContainer fallback />}
router={router}
future={future}
/>
</OpenInAppGuard>
<RouterProvider
fallbackElement={<AppContainer fallback />}
router={router}
future={future}
/>
</AffineContext>
</I18nProvider>
</CacheProvider>