diff --git a/packages/console/src/App.tsx b/packages/console/src/App.tsx
index 5b576fa3a..087aa16ea 100644
--- a/packages/console/src/App.tsx
+++ b/packages/console/src/App.tsx
@@ -8,6 +8,7 @@ import './scss/normalized.scss';
import * as styles from './App.module.scss';
import AppContent from './components/AppContent';
import { getPath, sections } from './components/AppContent/components/Sidebar';
+import ErrorBoundary from './components/ErrorBoundary';
import Toast from './components/Toast';
import { themeStorageKey, logtoApiResource } from './consts';
import { RequestError } from './hooks/use-api';
@@ -68,41 +69,43 @@ const Main = () => {
}, [location.pathname, navigate]);
return (
-
-
-
- } />
- }>
- } />
-
- } />
-
- } />
- } />
- } />
+
+
+
+
+ } />
+ }>
+ } />
+
+ } />
+
+ } />
+ } />
+ } />
+
+
+ } />
+ } />
+
+
+ } />
+ } />
+ } />
+
+
+ } />
+ } />
+
+
+ } />
+ } />
+
+ } />
-
- } />
- } />
-
-
- } />
- } />
- } />
-
-
- } />
- } />
-
-
- } />
- } />
-
- } />
-
-
-
+
+
+
);
};
diff --git a/packages/console/src/components/AppContent/index.tsx b/packages/console/src/components/AppContent/index.tsx
index d8ee2e776..d35f004c8 100644
--- a/packages/console/src/components/AppContent/index.tsx
+++ b/packages/console/src/components/AppContent/index.tsx
@@ -2,7 +2,6 @@ import { useLogto } from '@logto/react';
import React, { useEffect } from 'react';
import { Outlet, useHref } from 'react-router-dom';
-import ErrorBoundary from '../ErrorBoundary';
import LogtoLoading from '../LogtoLoading';
import Sidebar from './components/Sidebar';
import Topbar from './components/Topbar';
@@ -23,17 +22,15 @@ const AppContent = () => {
}
return (
-
-