Created the Content.jsx
This commit is contained in:
parent
239d716018
commit
69b23e2e64
13
client/src/common/components/Content/Content.jsx
Normal file
13
client/src/common/components/Content/Content.jsx
Normal file
@ -0,0 +1,13 @@
|
||||
import "./styles.sass";
|
||||
import {routes} from "@/common/routes";
|
||||
import {Route, Routes} from "react-router-dom";
|
||||
|
||||
export const Content = () => (
|
||||
<div className="content-wrapper">
|
||||
<Routes>
|
||||
{Object.keys(routes).map((route) => (routes[route].map((route) => (
|
||||
<Route exact path={route.path} element={route.component}/>
|
||||
))))}
|
||||
</Routes>
|
||||
</div>
|
||||
)
|
Reference in New Issue
Block a user