2019-06-26 04:28:56 +00:00
|
|
|
import * as React from 'react';
|
2019-06-29 05:17:29 +00:00
|
|
|
import { Route, RouteComponentProps, Switch } from 'react-router-dom';
|
2019-06-26 04:28:56 +00:00
|
|
|
import DesignElementsContainer from '@/components/dashboard/DesignElementsContainer';
|
|
|
|
import AccountOverviewContainer from '@/components/dashboard/AccountOverviewContainer';
|
|
|
|
import NavigationBar from '@/components/NavigationBar';
|
|
|
|
import DashboardContainer from '@/components/dashboard/DashboardContainer';
|
2019-06-29 05:17:29 +00:00
|
|
|
import TransitionRouter from '@/TransitionRouter';
|
2019-06-26 04:28:56 +00:00
|
|
|
|
2019-06-29 05:17:29 +00:00
|
|
|
export default ({ location }: RouteComponentProps) => (
|
2019-06-29 05:49:08 +00:00
|
|
|
<React.Fragment>
|
2019-06-26 04:28:56 +00:00
|
|
|
<NavigationBar/>
|
2019-06-29 05:17:29 +00:00
|
|
|
<TransitionRouter>
|
2019-12-23 05:18:29 +00:00
|
|
|
<Switch location={location}>
|
|
|
|
<Route path={'/'} component={DashboardContainer} exact/>
|
|
|
|
<Route path={'/account'} component={AccountOverviewContainer}/>
|
|
|
|
<Route path={'/design'} component={DesignElementsContainer}/>
|
|
|
|
</Switch>
|
2019-06-29 05:17:29 +00:00
|
|
|
</TransitionRouter>
|
2019-06-29 05:49:08 +00:00
|
|
|
</React.Fragment>
|
2019-06-26 04:28:56 +00:00
|
|
|
);
|