mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
refactor(core): adjust error detail and add error component to routes (#8234)
close PD-1430 https://github.com/user-attachments/assets/9447eaa5-c8b3-4108-96f1-d67ab45f249d 
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { AffineErrorBoundary } from '@affine/core/components/affine/affine-error-boundary';
|
||||
import { AffineErrorComponent } from '@affine/core/components/affine/affine-error-boundary/affine-error-fallback';
|
||||
import { AppFallback } from '@affine/core/components/affine/app-container';
|
||||
import { PageNotFound } from '@affine/core/desktop/pages/404';
|
||||
import { MobileWorkbenchRoot } from '@affine/core/desktop/pages/workspace/workbench-root';
|
||||
@@ -59,6 +60,7 @@ const warpedRoutes = workbenchRoutes.map((originalRoute: RouteObject) => {
|
||||
Component: () => {
|
||||
return <MobileRouteContainer route={route} />;
|
||||
},
|
||||
errorElement: <AffineErrorComponent />,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user