{"size": 660, "ext": "js", "max_stars_repo_path": "app/containers/DriverCertificatePage.js", "max_stars_repo_name": "khanhbui96/cloneidea2019", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/containers/DriverCertificatePage.js", "max_issues_repo_name": "khanhbui96/cloneidea2019", "max_issues_repo_issues_event_min_datetime": "2021-01-28T20:33:46.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-28T20:33:46.000Z", "max_forks_repo_path": "app/containers/DriverCertificatePage.js", "max_forks_repo_name": "khanhbui96/cloneidea2019", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 19.4117647059, "max_line_length": 59, "alphanum_fraction": 0.6484848485}


import React, {useEffect} from 'react'
import { connect } from 'react-redux';
import Wrapper from '../components/Wrapper';
import Certificate from '../components/Driver/Certificate';
import {
  getAll
} from '../actions/driver.actions'

const mapStateToProps = state=>{
  return {
    drivers: state.drivers,
    updateData: state.selectDriver
  }
};

const DriveCertificatePage = (props)=>{
  const {getAll, drivers} = props;
  useEffect(()=>{
    getAll()
  }, [])
    return(
        <Wrapper>
            <Certificate vehicleProps={props}/>
        </Wrapper>
    )
}
export default connect(
  mapStateToProps,
  {
    getAll
  }
)(DriveCertificatePage);