2018-05-05 12:13:43 +05:30
|
|
|
import React from 'react';
|
2018-03-26 00:46:45 +05:30
|
|
|
import { Redirect, Route, Switch } from 'react-router-dom';
|
2018-05-05 12:13:43 +05:30
|
|
|
import { FooterMenu } from 'components/footerMenu';
|
2018-11-10 14:33:47 +05:30
|
|
|
import PrivateRoute from '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';
|
|
|
|
|
2018-05-05 12:13:43 +05:30
|
|
|
export default function DevPage() {
|
2019-11-27 14:33:32 +05:30
|
|
|
return (
|
|
|
|
<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
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
<div className={styles.footer}>
|
|
|
|
<FooterMenu />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
2018-03-26 00:46:45 +05:30
|
|
|
}
|