Files
bigcapital/client/src/components/Dashboard/DashboardContentRoute.js
a.bouhuolia 9e2c995813 fix: logo style.
fix: page forms style.
feat: auto-fill items entries from item details.
fix: hiding dashboard copyright bar.
2021-02-25 10:51:27 +02:00

32 lines
774 B
JavaScript

import React from 'react';
import { Route, Switch } from 'react-router-dom';
import routes from 'routes/dashboard';
import DashboardPage from './DashboardPage';
/**
* Dashboard content route.
*/
export default function DashboardContentRoute() {
return (
<Route pathname="/">
<Switch>
{routes.map((route, index) => (
<Route
exact={route.exact}
key={index}
path={`${route.path}`}
>
<DashboardPage
name={route.name}
Component={route.component}
pageTitle={route.pageTitle}
backLink={route.backLink}
sidebarShrink={route.sidebarShrink}
/>
</Route>
))}
</Switch>
</Route>
);
}