// @flow import React, { Component } 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 { props: { client: { id: string, name: string, description: string } }; state = { isSidebarHidden: false }; render() { const {isSidebarHidden} = this.state; const {client} = this.props; return (
); } onGoToAuth = () => { this.setState({ isSidebarHidden: true }); }; } function renderPanelTransition(factory) { const {Title, Body, Footer, Links} = factory(); return (props) => ( } Body={} Footer={