Cleaned up routes layout in App.tsx

This commit is contained in:
Keannu Bernasol 2023-02-15 12:32:35 +08:00
parent 3200f9866b
commit 0a7613bb75

View file

@ -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>
), ),
}, },
]); ]);