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'}>
<h3 className="h3">{props.title}</h3>
</NavLink>
<nav className="icon-buttons">
{
props.help?
<nav className="icon-buttons">
<a className="icon-button help" href={props.help}>
More info
</a>
</nav>
: null
}
<NavLink className="icon-button edit" title="Edit data"
to={`/select.html?cat=${props.slug}`}>
Edit
<EditIcon />
</NavLink>
</nav>
</header>
<dl className="data-list">
{