2020-01-18 02:07:52 +05:30
|
|
|
import React, { ComponentType } from 'react';
|
2018-03-26 00:46:45 +05:30
|
|
|
import { Redirect, Route, Switch } from 'react-router-dom';
|
2019-12-08 00:32:00 +05:30
|
|
|
import { FooterMenu } from 'app/components/footerMenu';
|
|
|
|
import PrivateRoute from 'app/containers/PrivateRoute';
|
2018-03-26 00:46:45 +05:30
|
|
|
|
|
|
|
import styles from './dev.scss';
|
|
|
|
import ApplicationsListPage from './ApplicationsListPage';
|
|
|
|
import CreateNewApplicationPage from './CreateNewApplicationPage';
|
|
|
|
import UpdateApplicationPage from './UpdateApplicationPage';
|
|
|
|
|
2020-01-18 02:07:52 +05:30
|
|
|
const DevPage: ComponentType = () => (
|
2020-05-24 04:38:24 +05:30
|
|
|
<div className={styles.container}>
|
|
|
|
<div data-e2e-content>
|
|
|
|
<Switch>
|
|
|
|
<Route path="/dev/applications" exact component={ApplicationsListPage} />
|
|
|
|
<PrivateRoute path="/dev/applications/new" exact component={CreateNewApplicationPage} />
|
|
|
|
<PrivateRoute path="/dev/applications/:clientId" component={UpdateApplicationPage} />
|
|
|
|
<Redirect to="/dev/applications" />
|
|
|
|
</Switch>
|
|
|
|
</div>
|
2018-03-26 00:46:45 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
<div className={styles.footer}>
|
|
|
|
<FooterMenu />
|
|
|
|
</div>
|
2019-11-27 14:33:32 +05:30
|
|
|
</div>
|
2020-01-18 02:07:52 +05:30
|
|
|
);
|
|
|
|
|
|
|
|
export default DevPage;
|