diff --git a/frontend/src/component/app.jsx b/frontend/src/component/app.jsx
index 7daa4b05cc..f566fadc48 100644
--- a/frontend/src/component/app.jsx
+++ b/frontend/src/component/app.jsx
@@ -1,54 +1,43 @@
import React, { PureComponent } from 'react';
+import { connect } from 'react-redux';
import PropTypes from 'prop-types';
-import { Layout, Content, Footer, Grid, Cell } from 'react-mdl';
import { Route, Redirect, Switch } from 'react-router-dom';
-import styles from './styles.scss';
-import ErrorContainer from './error/error-container';
-import Header from './menu/header';
-import AuthenticationContainer from './user/authentication-container';
-import ShowApiDetailsContainer from './api/show-api-details-container';
import Features from '../page/features';
-
-import { FooterMenu } from './menu/footer';
import { routes } from './menu/routes';
+import styles from './styles.scss';
+import AuthenticationContainer from './user/authentication-container';
+import MainLayout from './layout/main';
-export default class App extends PureComponent {
+class App extends PureComponent {
static propTypes = {
location: PropTypes.object.isRequired,
match: PropTypes.object.isRequired,
history: PropTypes.object.isRequired,
+ user: PropTypes.object,
};
render() {
+ if (this.props.user.authDetails) {
+ return