import React from 'react'; import { connect } from 'react-redux'; import './css/Github.css'; import Theater from './subcomponents/Theater'; import GithubRepos from './subcomponents/GithubRepos'; class Github extends React.Component { /** * Github - github repository list of a specific user. * Github doesn't take any props and is * a main component that will be directly displayed in the App component. * Github will run an action that grabs a list of repositories, then displays them. * Each language is requested once and listed for each repository. */ username = "RaspberryProgramming"; render() { return (
avatar_pic {this.props.user ? this.props.user.bio : ''}
} background="/img/space.webp" extraClasses="peak" />
); } } const mapStateToProps = (state) => { return {user: state.github.user}; } export default connect(mapStateToProps, {})(Github);