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';
|
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';
|
|
|
|
|
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
|
|
|
}
|