Back from edit overview to view

This commit is contained in:
Tom Russell 2019-01-22 18:01:29 +00:00
parent 2d54a7061d
commit 0b598e318b

View File

@ -16,9 +16,10 @@ const Overview = (props) => {
}
let title = (props.mode === 'view')? 'View maps' : 'Add or edit data';
let back = (props.mode === 'edit')? `/view/${data_layer}.html` : undefined;
return (
<Sidebar title={title}>
<Sidebar title={title} back={back}>
{
CONFIG.map((data_group) => (
<OverviewSection {...data_group}