feat: Preferences issue.

This commit is contained in:
Ahmed Bouhuolia
2020-04-11 14:40:56 +02:00
parent e8079dbde3
commit 6dcff7e4c2
7 changed files with 44 additions and 50 deletions

View File

@@ -3,15 +3,13 @@ import { Route, Switch, useRouteMatch } from 'react-router-dom';
import preferencesRoutes from 'routes/preferences'
export default function DashboardContentRoute() {
const { path } = useRouteMatch();
return (
<Route pathname="/dashboard/preferences">
<Switch>
{ preferencesRoutes.map((route, index) => (
<Route
key={index}
path={`${path}/${route.path}`}
path={`${route.path}`}
exact={route.exact}
component={route.component}
/>