mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
22 lines
524 B
JavaScript
22 lines
524 B
JavaScript
import React from 'react';
|
|
import { Route, Switch, Redirect } from 'react-router-dom';
|
|
import preferencesRoutes from 'routes/preferences'
|
|
|
|
|
|
export default function DashboardContentRoute() {
|
|
|
|
return (
|
|
<Route pathname="/preferences">
|
|
<Switch>
|
|
{ preferencesRoutes.map((route, index) => (
|
|
<Route
|
|
key={index}
|
|
path={`${route.path}`}
|
|
exact={route.exact}
|
|
component={route.component}
|
|
/>
|
|
))}
|
|
</Switch>
|
|
</Route>
|
|
);
|
|
} |