mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-02 19:50:44 +05:30
31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
JavaScript
|
// @flow
|
||
|
import React, { Component } from 'react';
|
||
|
import { Redirect, Route, Switch } from 'react-router-dom';
|
||
|
|
||
|
import styles from './dev.scss';
|
||
|
|
||
|
import ApplicationsListPage from './ApplicationsListPage';
|
||
|
import CreateNewApplicationPage from './CreateNewApplicationPage';
|
||
|
import UpdateApplicationPage from './UpdateApplicationPage';
|
||
|
|
||
|
import { FooterMenu } from 'components/footerMenu';
|
||
|
|
||
|
export default class DevPage extends Component<{}> {
|
||
|
render() {
|
||
|
return (
|
||
|
<div className={styles.container}>
|
||
|
<Switch>
|
||
|
<Route path="/dev/applications" exact component={ApplicationsListPage} />
|
||
|
<Route path="/dev/applications/new" exact component={CreateNewApplicationPage} />
|
||
|
<Route path="/dev/applications/:clientId" component={UpdateApplicationPage} />
|
||
|
<Redirect to="/dev/applications" />
|
||
|
</Switch>
|
||
|
|
||
|
<div className={styles.footer}>
|
||
|
<FooterMenu />
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
}
|