add oauth flows, profile, logout page, and index page

This commit is contained in:
cleverbeagle 2017-05-29 22:02:22 -05:00
parent 650c93273a
commit b0270cc98b
31 changed files with 449 additions and 162 deletions

View file

@ -7,7 +7,7 @@ import AuthenticatedNavigation from '../AuthenticatedNavigation/AuthenticatedNav
import './Navigation.scss';
const Navigation = ({ authenticated, name }) => (
const Navigation = props => (
<Navbar>
<Navbar.Header>
<Navbar.Brand>
@ -16,18 +16,17 @@ const Navigation = ({ authenticated, name }) => (
<Navbar.Toggle />
</Navbar.Header>
<Navbar.Collapse>
{!authenticated ? <PublicNavigation /> : <AuthenticatedNavigation name={name} />}
{!props.authenticated ? <PublicNavigation /> : <AuthenticatedNavigation {...props} />}
</Navbar.Collapse>
</Navbar>
);
Navigation.defaultProps = {
name: PropTypes.string,
name: '',
};
Navigation.propTypes = {
authenticated: PropTypes.bool.isRequired,
name: PropTypes.string,
};
export default Navigation;