WIP Frontend development.

This commit is contained in:
Ahmed Bouhuolia
2020-02-18 02:31:42 +02:00
parent e5c78fe555
commit a37341ff00
24 changed files with 364 additions and 80 deletions

View File

@@ -1,11 +1,25 @@
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import dashboardRoutes from 'routes/dashboard'
import DashboardTopbar from 'components/Dashboard/DashboardTopbar';
export default function() {
return (
<div className="dashboard-content" id="dashboard">
<h2>dashboard</h2>
<DashboardTopbar pageTitle={"asdad"}/>
<Route pathname="/dashboard/">
<Switch>
{ dashboardRoutes.map((route, index) => (
<Route
key={index}
path={route.path}
exact={route.exact}
component={route.component}
/>
))}
</Switch>
</Route>
</div>
)
}