text: 
  import React, { Component } from 'react'
  import PropTypes from 'prop-types'
  import { connect } from 'react-redux'
  import { authLogin } from 'containers/Auth/actions'
  import ThemeProvider from 'components/ThemeProvider'
  
  import routes from './routes'
  
  class App extends Component {
    componentWillMount () {
      const { auth } = this.props
      if (auth.token != null) {
        this.props.userAuthLogin(auth.authToken)
      }
    }
  
    render () {
      return (
        <ThemeProvider>
          <div>
            {routes()}
          </div>
        </ThemeProvider>
      )
    }
  }
  
  App.propTypes = {
    auth: PropTypes.object.isRequired,
    userAuthLogin: PropTypes.func.isRequired
  }
  
  const mapStateToProps = ({ auth }) => ({ auth })
  
  const mapDispatchToProps = (dispatch) => ({
    userAuthLogin: (token) => dispatch(authLogin(token))
  })
  
  export default connect(mapStateToProps, mapDispatchToProps)(App)
  