import { Component, PropTypes } from 'react'; import { Route, Switch, Redirect } from 'react-router-dom'; import AppInfo from 'components/auth/appInfo/AppInfo'; import PanelTransition from 'components/auth/PanelTransition'; import Register from 'components/auth/register/Register'; import Login from 'components/auth/login/Login'; import Permissions from 'components/auth/permissions/Permissions'; import ChooseAccount from 'components/auth/chooseAccount/ChooseAccount'; import Activation from 'components/auth/activation/Activation'; import ResendActivation from 'components/auth/resendActivation/ResendActivation'; import Password from 'components/auth/password/Password'; import AcceptRules from 'components/auth/acceptRules/AcceptRules'; import ForgotPassword from 'components/auth/forgotPassword/ForgotPassword'; import RecoverPassword from 'components/auth/recoverPassword/RecoverPassword'; import Finish from 'components/auth/finish/Finish'; import styles from './auth.scss'; class AuthPage extends Component { static displayName = 'AuthPage'; static propTypes = { client: PropTypes.shape({ id: PropTypes.string.isRequired, name: PropTypes.string.isRequired, description: PropTypes.string.isRequired }) }; state = { isSidebarHidden: false }; render() { const {isSidebarHidden} = this.state; const {client} = this.props; return (