Created
November 11, 2016 17:35
-
-
Save mauricedb/e82862db51de302edc713700ff60c86e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { PropTypes } from 'react'; | |
const Header = ({ user }) => ( | |
<nav className="navbar navbar-default"> | |
<div className="container-fluid"> | |
<div className="navbar-header"> | |
<a className="navbar-brand" href="/"> | |
Nitflex Movies | |
</a> | |
</div> | |
<div className="navbar-right"> | |
<p className="navbar-text"> | |
{user.name} | |
</p> | |
</div> | |
</div> | |
</nav> | |
); | |
Header.propTypes = { | |
user: PropTypes.shape({ name: React.PropTypes.string }).isRequired, | |
}; | |
export default Header; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment