diff --git a/frontend/src/components/Header.js b/frontend/src/components/Header.js index 1764d74a..f8f2f485 100644 --- a/frontend/src/components/Header.js +++ b/frontend/src/components/Header.js @@ -1,5 +1,19 @@ import React, { Component, PropTypes } from 'react' +const MapLink = props => { + const { show, linkText, href, linkClass, ...otherProps } = props + if (!show) { + return null + } + + return ( + +
+ {linkText} +
+ ) +} + class Header extends Component { render = () => { const { signedIn, section } = this.props @@ -20,35 +34,47 @@ class Header extends Component {
- {signedIn && explore ? -
- My Maps -
: null } - {signedIn && explore ? -
- Shared With Me -
: null } - {explore ? -
- Recently Active -
: null } - {!signedIn && explore ? -
- Featured Maps -
: null } - {mapper ?
+ + + + + + {mapper ? ( +
{this.props.userName}’s Maps
-
: null } - {apps ? -
- Registered Apps -
: null } - {apps ? -
- Authorized Apps -
: null } +
+ ) : null } + + +