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>
|
|
|
|
<div className={'w-full mx-auto'} style={{ maxWidth: '1200px' }}>
|
|
|
|
<Switch location={location}>
|
|
|
|
<Route path={'/'} component={DashboardContainer} exact/>
|
|
|
|
<Route path={'/account'} component={AccountOverviewContainer}/>
|
|
|
|
<Route path={'/design'} component={DesignElementsContainer}/>
|
|
|
|
</Switch>
|
|
|
|
</div>
|
|
|
|
</TransitionRouter>
|
2019-06-29 05:49:08 +00:00
|
|
|
</React.Fragment>
|
2019-06-26 04:28:56 +00:00
|
|
|
);
|