Add an 'edit' button on maps sidebar

This commit is contained in:
Tom Russell 2018-11-13 10:15:46 +00:00
parent db23a4ed35
commit e1342a7d05

View File

@ -108,15 +108,20 @@ const LegendGroup = (props) => {
(match)? '' : 'Show on map'}> (match)? '' : 'Show on map'}>
<h3 className="h3">{props.title}</h3> <h3 className="h3">{props.title}</h3>
</NavLink> </NavLink>
{ <nav className="icon-buttons">
props.help? {
<nav className="icon-buttons"> props.help?
<a className="icon-button help" href={props.help}> <a className="icon-button help" href={props.help}>
More info More info
</a> </a>
</nav> : null
: null }
} <NavLink className="icon-button edit" title="Edit data"
to={`/select.html?cat=${props.slug}`}>
Edit
<EditIcon />
</NavLink>
</nav>
</header> </header>
<dl className="data-list"> <dl className="data-list">
{ {