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: "/",
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>
),
},
]);