{"size": 497, "ext": "js", "max_stars_repo_path": "pages/signin/container/index.js", "max_stars_repo_name": "tesarwijaya/metron", "max_stars_repo_stars_event_min_datetime": "2019-09-07T10:06:56.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-13T08:27:45.000Z", "max_issues_repo_path": "pages/signin/container/index.js", "max_issues_repo_name": "tesarwijaya/metron", "max_issues_repo_issues_event_min_datetime": "2021-03-09T16:47:11.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T12:51:28.000Z", "max_forks_repo_path": "pages/signin/container/index.js", "max_forks_repo_name": "tesarwijaya/metron", "max_forks_repo_forks_event_min_datetime": "2019-09-04T18:29:20.000Z", "max_forks_repo_forks_event_max_datetime": "2019-09-07T12:52:46.000Z"}
{"max_stars_count": 2, "max_issues_count": 8, "max_forks_count": 2, "avg_line_length": 18.4074074074, "max_line_length": 48, "alphanum_fraction": 0.6498993964}
import React from 'react'
import { Router } from 'config/routes'

import me from 'lib/me'

import Component from '../component'

class Container extends React.Component {
  static async getInitialProps({ req, store }) {
    const data = await me(req, store)
    return data
  }

  componentDidMount() {
    const { auth } = this.props
    if (auth.isAuthenticated) {
      Router.pushRoute('home')
    }
  }

  render() {
    return (<Component {...this.props} />)
  }
}

export default Container
