{"size": 1204, "ext": "js", "max_stars_repo_path": "client/src/components/pages/homePage.js", "max_stars_repo_name": "Wesley16838/PriCov", "max_stars_repo_stars_event_min_datetime": "2020-01-24T11:51:48.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-29T05:21:05.000Z", "max_issues_repo_path": "client/src/components/pages/homePage.js", "max_issues_repo_name": "Wesley16838/PriCov", "max_issues_repo_issues_event_min_datetime": "2019-12-13T04:01:05.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T10:13:25.000Z", "max_forks_repo_path": "client/src/components/pages/homePage.js", "max_forks_repo_name": "Wesley16838/PriCov", "max_forks_repo_forks_event_min_datetime": "2020-01-29T03:17:15.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-29T03:17:15.000Z"}
{"max_stars_count": 2, "max_issues_count": 6, "max_forks_count": 1, "avg_line_length": 25.6170212766, "max_line_length": 81, "alphanum_fraction": 0.5780730897}
import React, {Component} from 'react';
import { BrowserRouter as Router, Switch, Route,NavLink } from "react-router-dom"
import SignOutButton from "../component/signout"
import CreatePanel from "../component/panel"
import PanelList from "../component/panelList"
import Getpanel from "../charts/Getpanel"
import {
    withRouter
  } from 'react-router-dom'
class Homepage extends Component {
  constructor(props) {
    console.log('in Homepage!')
    
    super(props);
    console.log('email,',this.props.email)
    this.state = {
        email: this.props.email
    }
  }
    componentWillMount(){
        console.log("in homepage componentWillMount!!!")
    }
    componentDidMount() {
      document.title = this.props.title
    }
  render() {
    console.log("in homepage render!!!")
    return(
        <div>
            <div className="home-header">
               
            </div>
            <div className="home-body">
                <h1>Dashboard</h1>
                <CreatePanel/>
                {/* <Getpanel id={this.state.email}/> */}
                <Getpanel id={this.state.email}/>
            </div>
        </div>
      
      

    )
  }
}

export default withRouter(Homepage);