mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-17 06:39:25 +08:00
Cleaned up routes layout in App.tsx
This commit is contained in:
parent
3200f9866b
commit
0a7613bb75
1 changed files with 9 additions and 15 deletions
|
@ -11,28 +11,22 @@ const router = createBrowserRouter([
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
element: (
|
element: (
|
||||||
<React.StrictMode>
|
|
||||||
<Container>
|
<Container>
|
||||||
<Dashboard />
|
<Dashboard />
|
||||||
</Container>
|
</Container>
|
||||||
</React.StrictMode>
|
|
||||||
),
|
),
|
||||||
errorElement: (
|
errorElement: (
|
||||||
<React.StrictMode>
|
|
||||||
<Container>
|
<Container>
|
||||||
<Error />
|
<Error />
|
||||||
</Container>
|
</Container>
|
||||||
</React.StrictMode>
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/Products",
|
path: "/Products",
|
||||||
element: (
|
element: (
|
||||||
<React.StrictMode>
|
|
||||||
<Container>
|
<Container>
|
||||||
<Products />
|
<Products />
|
||||||
</Container>
|
</Container>
|
||||||
</React.StrictMode>
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue