mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
20 lines
458 B
JavaScript
20 lines
458 B
JavaScript
import React from 'react';
|
|
import { Route, Switch } from 'react-router-dom';
|
|
import routes from 'routes/dashboard'
|
|
|
|
export default function DashboardContentRoute() {
|
|
|
|
return (
|
|
<Route pathname="/">
|
|
<Switch>
|
|
{ routes.map((route, index) => (
|
|
<Route
|
|
exact={route.exact}
|
|
key={index}
|
|
path={`${route.path}`}
|
|
component={route.component} />
|
|
))}
|
|
</Switch>
|
|
</Route>
|
|
);
|
|
} |