parent
5661af9df4
commit
3512ecfaed
@ -54,6 +54,8 @@ const DataSection = (props) => {
|
|||||||
<header className={(match? "active " : "") + "bullet-prefix section-header"}>
|
<header className={(match? "active " : "") + "bullet-prefix section-header"}>
|
||||||
<NavLink
|
<NavLink
|
||||||
to={`/building/${props.building_id}.html` + ((match)? '': `?cat=${props.slug}`)}
|
to={`/building/${props.building_id}.html` + ((match)? '': `?cat=${props.slug}`)}
|
||||||
|
title={(props.inactive)? 'Coming soon… Click the ? for more info.' :
|
||||||
|
(match)? 'Hide details' : 'Show details'}
|
||||||
isActive={() => match}>
|
isActive={() => match}>
|
||||||
<h3 className="h3">{props.title}</h3>
|
<h3 className="h3">{props.title}</h3>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
@ -75,7 +77,6 @@ const DataSection = (props) => {
|
|||||||
}
|
}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
{ (match && props.intro)? <p className="data-intro">{ props.intro }</p> : null }
|
|
||||||
{ match? <dl className="data-list">{props.children}</dl> : null }
|
{ match? <dl className="data-list">{props.children}</dl> : null }
|
||||||
{
|
{
|
||||||
(match && !props.inactive)?
|
(match && !props.inactive)?
|
||||||
|
@ -90,7 +90,9 @@ const LegendGroup = (props) => {
|
|||||||
<header className="bullet-prefix section-header">
|
<header className="bullet-prefix section-header">
|
||||||
<NavLink
|
<NavLink
|
||||||
to={`/map/${props.slug}.html`}
|
to={`/map/${props.slug}.html`}
|
||||||
isActive={() => match}>
|
isActive={() => match}
|
||||||
|
title={(inactive)? 'Coming soon… Click the ? for more info.' :
|
||||||
|
(match)? '' : 'Show on map'}>
|
||||||
<h3 className="h3">{props.title}</h3>
|
<h3 className="h3">{props.title}</h3>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
{
|
{
|
||||||
@ -103,7 +105,6 @@ const LegendGroup = (props) => {
|
|||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
</header>
|
</header>
|
||||||
{ (match && props.intro)? <p className="data-intro">{ props.intro }</p> : null }
|
|
||||||
<dl className="data-list">
|
<dl className="data-list">
|
||||||
{
|
{
|
||||||
(match && props.maps)?
|
(match && props.maps)?
|
||||||
|
Loading…
Reference in New Issue
Block a user