{"size": 700, "ext": "js", "max_stars_repo_path": "client/src/Containers/showLogEntry.js", "max_stars_repo_name": "Xplor8r/surfers_log_rails_react", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/Containers/showLogEntry.js", "max_issues_repo_name": "Xplor8r/surfers_log_rails_react", "max_issues_repo_issues_event_min_datetime": "2019-08-22T00:38:41.000Z", "max_issues_repo_issues_event_max_datetime": "2019-08-22T00:38:41.000Z", "max_forks_repo_path": "client/src/Containers/showLogEntry.js", "max_forks_repo_name": "Xplor8r/surfers_log_rails_react", "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": 24.1379310345, "max_line_length": 66, "alphanum_fraction": 0.6}
import React, { Component } from 'react'
import { connect } from 'react-redux';
import { Col } from 'reactstrap';
import LogEntry from '../Components/logEntry';

class LogEntriesByUser extends Component {
    componentWillMount(){

    }
    componentDidMount() {
        window.scrollTo(0, 0)
    }
    render() {
        let logEntry = this.props.logEntryData[0];
        return (
            <Col xs="9" style={{ padding: '0px'}}>
                <LogEntry key={logEntry.id} logEntry={logEntry} />
            </Col>
        )
    }
}

const mapStateToProps = (state) => {
    return {
        logEntryData: state.logEntryData
    }
  }
  
export default connect(mapStateToProps)(LogEntriesByUser)