mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-16 22:29:24 +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
24
src/App.tsx
24
src/App.tsx
|
@ -11,28 +11,22 @@ const router = createBrowserRouter([
|
|||
{
|
||||
path: "/",
|
||||
element: (
|
||||
<React.StrictMode>
|
||||
<Container>
|
||||
<Dashboard />
|
||||
</Container>
|
||||
</React.StrictMode>
|
||||
<Container>
|
||||
<Dashboard />
|
||||
</Container>
|
||||
),
|
||||
errorElement: (
|
||||
<React.StrictMode>
|
||||
<Container>
|
||||
<Error />
|
||||
</Container>
|
||||
</React.StrictMode>
|
||||
<Container>
|
||||
<Error />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Products",
|
||||
element: (
|
||||
<React.StrictMode>
|
||||
<Container>
|
||||
<Products />
|
||||
</Container>
|
||||
</React.StrictMode>
|
||||
<Container>
|
||||
<Products />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue