22import { lazy } from 'react'
33import { createBrowserRouter } from 'react-router-dom'
44
5- import WelcomePage from '@/modules/Welcome/WelcomePage.tsx'
65import LoginPage from '@/modules/Login/LoginPage.tsx'
6+ import Dashboard from '@/modules/Dashboard/Dashboard.tsx'
7+ import ErrorPage from '@/modules/App/components/ErrorPage.tsx'
78
9+ const WelcomePage = lazy ( ( ) => import ( '@/modules/Welcome/WelcomePage.tsx' ) )
810const BridgePage = lazy ( ( ) => import ( '@/modules/Bridges/BridgePage.tsx' ) )
911const BridgeEditor = lazy ( ( ) => import ( '@/modules/Bridges/components/panels/BridgeEditor.tsx' ) )
1012const ProtocolAdapterPage = lazy ( ( ) => import ( '@/modules/ProtocolAdapters/ProtocolAdapterPage.tsx' ) )
@@ -15,14 +17,8 @@ const EdgeFlowPage = lazy(() => import('@/modules/Workspace/EdgeFlowPage.tsx'))
1517const NodePanelController = lazy ( ( ) => import ( '@/modules/Workspace/components/controls/NodePanelController.tsx' ) )
1618const EvenLogPage = lazy ( ( ) => import ( '@/modules/EventLog/EvenLogPage.tsx' ) )
1719
18- // const DataHubPage = lazy(() => import('@/extensions/datahub/components/DataHubPage.tsx'))
19- // const PolicyTable = lazy(() => import('@/extensions/datahub/components/PolicyTable.tsx'))
20-
2120import { dataHubRoutes } from '@/extensions/datahub/routes.tsx'
2221
23- import Dashboard from '../Dashboard/Dashboard.tsx'
24- import ErrorPage from './components/ErrorPage.tsx'
25-
2622export const routes = createBrowserRouter (
2723 [
2824 {
@@ -89,17 +85,6 @@ export const routes = createBrowserRouter(
8985 ] ,
9086 } ,
9187 { ...dataHubRoutes } ,
92- // {
93- // path: 'datahub/',
94- // element: <DataHubPage />,
95- // children: [
96- // {
97- // path: '',
98- // index: true,
99- // element: <PolicyTable />,
100- // },
101- // ],
102- // },
10388 ] ,
10489 } ,
10590 {
0 commit comments