mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-25 09:43:44 +02:00
Fix router to make it easier to actually navigate around the app
This commit is contained in:
@@ -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 New Issue
Block a user