render user picture and mobile nav

This commit is contained in:
Berkeley Martinez
2015-07-24 21:54:19 -07:00
parent 81b1c81b51
commit 9a236d1ec7
2 changed files with 45 additions and 15 deletions

View File

@@ -19,13 +19,19 @@ export default contain(
displayName: 'FreeCodeCamp',
propTypes: {
children: PropTypes.node
children: PropTypes.node,
username: PropTypes.string,
points: PropTypes.number,
picture: PropTypes.string
},
render() {
const { username, points, picture } = this.props;
const navProps = { username, points, picture };
return (
<div>
<Nav />
<Nav
{ ...navProps }/>
<Row>
{ this.props.children }
</Row>