TreeView for ProductGroups inital implementation
This commit is contained in:
@@ -7,6 +7,7 @@ const Layout = lazy(() => import('./Layout.tsx'))
|
||||
const HomePage = lazy(() => import('./pages/HomePage.tsx'))
|
||||
const LanguagesPage = lazy(() => import('./pages/LanguagesPage.tsx'))
|
||||
const PropertyPage = lazy(() => import('./pages/PropertyPage.tsx'))
|
||||
const ProductPage = lazy(() => import('./pages/ProductPage.tsx'))
|
||||
const NotFoundPage = lazy(() => import('./pages/NotFoundPage.tsx'))
|
||||
|
||||
const renderLazyRoute = (Component: ComponentType) => (
|
||||
@@ -24,6 +25,7 @@ const router = createBrowserRouter([
|
||||
{ index: true, element: renderLazyRoute(HomePage) },
|
||||
{ path: 'language', element: renderLazyRoute(LanguagesPage) },
|
||||
{ path: 'propertypool', element: renderLazyRoute(PropertyPage) },
|
||||
{ path: 'product', element: renderLazyRoute(ProductPage) },
|
||||
{ path: '*', element: renderLazyRoute(NotFoundPage) },
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user