From 9a236d1ec79ff015a317523875730796066a92e6 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Fri, 24 Jul 2015 21:54:19 -0700 Subject: [PATCH] render user picture and mobile nav --- common/app/App.jsx | 10 +++++-- common/app/components/Nav/Nav.jsx | 50 +++++++++++++++++++++++-------- 2 files changed, 45 insertions(+), 15 deletions(-) diff --git a/common/app/App.jsx b/common/app/App.jsx index 6ebfa221f0..1c6c547cc3 100644 --- a/common/app/App.jsx +++ b/common/app/App.jsx @@ -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 (
-
); } else { return ( @@ -69,6 +88,7 @@ export default class extends React.Component { } render() { + const { username, points, picture } = this.props; return ( - + + + ); }