mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: page forms style. feat: auto-fill items entries from item details. fix: hiding dashboard copyright bar.
32 lines
774 B
JavaScript
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>
|
|
);
|
|
}
|