Fix router to make it easier to actually navigate around the app
This commit is contained in:
parent
f34593e777
commit
60f32f055e
9 changed files with 42 additions and 34 deletions
|
@ -1,11 +1,10 @@
|
|||
import * as React from 'react';
|
||||
import { Route } from 'react-router-dom';
|
||||
import { Route, RouteComponentProps } from 'react-router-dom';
|
||||
import DesignElements from '@/components/account/DesignElements';
|
||||
import TransitionRouter from '@/TransitionRouter';
|
||||
|
||||
export default () => (
|
||||
<TransitionRouter basename={'/account'}>
|
||||
<Route path={'/'} component={DesignElements} exact/>
|
||||
<Route path={'/design'} component={DesignElements} exact/>
|
||||
</TransitionRouter>
|
||||
export default ({ match }: RouteComponentProps) => (
|
||||
<div>
|
||||
<Route path={`${match.path}/`} component={DesignElements} exact/>
|
||||
<Route path={`${match.path}/design`} component={DesignElements} exact/>
|
||||
</div>
|
||||
);
|
||||
|
|
Reference in a new issue