This commit is contained in:
Connor Turland 2016-08-30 17:19:25 -04:00
parent 1c14b59238
commit 9cd6306cc9

View file

@ -32,47 +32,49 @@ class Header extends Component {
const mapper = section == "mapper" const mapper = section == "mapper"
return ( return (
<div className="exploreMapsBar exploreElement"> <div id="exploreMapsHeader">
<div className="exploreMapsMenu"> <div className="exploreMapsBar exploreElement">
<div className="exploreMapsCenter"> <div className="exploreMapsMenu">
<MapLink show={signedIn && explore} <div className="exploreMapsCenter">
href="/explore/mine" <MapLink show={signedIn && explore}
linkClass={activeClass("my")} href="/explore/mine"
data-router="true" linkClass={activeClass("my")}
text="My Maps" data-router="true"
/> text="My Maps"
<MapLink show={signedIn && explore} />
href="/explore/shared" <MapLink show={signedIn && explore}
linkClass={activeClass("shared")} href="/explore/shared"
data-router="true" linkClass={activeClass("shared")}
text="Shared With Me" data-router="true"
/> text="Shared With Me"
<MapLink show={signedIn && explore} />
href="/explore/starred" <MapLink show={signedIn && explore}
linkClass={activeClass("starred")} href="/explore/starred"
data-router="true" linkClass={activeClass("starred")}
text="Starred" data-router="true"
/> text="Starred"
<MapLink show={explore} />
href={signedIn ? "/" : "/explore/active"} <MapLink show={explore}
linkClass={activeClass("active")} href={signedIn ? "/" : "/explore/active"}
data-router="true" linkClass={activeClass("active")}
text="Recently Active" data-router="true"
/> text="Recently Active"
<MapLink show={!signedIn && explore} />
href="/explore/featured" <MapLink show={!signedIn && explore}
linkClass={activeClass("featured")} href="/explore/featured"
data-router="true" linkClass={activeClass("featured")}
text="Featured Maps" data-router="true"
/> text="Featured Maps"
/>
{mapper ? (
<div className='exploreMapsButton active mapperButton'> {mapper ? (
<img className='exploreMapperImage' width='24' height='24' src={this.props.user.image} /> <div className='exploreMapsButton active mapperButton'>
<div className='exploreMapperName'>{this.props.user.name}&rsquo;s Maps</div> <img className='exploreMapperImage' width='24' height='24' src={this.props.user.image} />
<div className='clearfloat'></div> <div className='exploreMapperName'>{this.props.user.name}&rsquo;s Maps</div>
</div> <div className='clearfloat'></div>
) : null } </div>
) : null }
</div>
</div> </div>
</div> </div>
</div> </div>