Fix checkbox inputs

This commit is contained in:
Maciej Ziarkowski 2019-10-15 13:20:09 +01:00
parent 921fcd16e4
commit ce473cb453

View File

@ -26,7 +26,7 @@ const PlanningView = (props) => (
value={props.building.planning_in_conservation_area} value={props.building.planning_in_conservation_area}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onCheck}
/> />
<DataEntry <DataEntry
title="Conservation area name" title="Conservation area name"
@ -42,7 +42,7 @@ const PlanningView = (props) => (
value={props.building.planning_in_list} value={props.building.planning_in_list}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onCheck}
/> />
<DataEntry <DataEntry
title="National Heritage List for England list id" title="National Heritage List for England list id"
@ -103,7 +103,7 @@ const PlanningView = (props) => (
value={props.building.planning_in_glher} value={props.building.planning_in_glher}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onCheck}
/> />
<DataEntry <DataEntry
title="Greater London Historic Environment Record link" title="Greater London Historic Environment Record link"
@ -119,7 +119,7 @@ const PlanningView = (props) => (
value={props.building.planning_in_apa} value={props.building.planning_in_apa}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onCheck}
/> />
<DataEntry <DataEntry
title="Architectural Priority Area name" title="Architectural Priority Area name"
@ -143,7 +143,7 @@ const PlanningView = (props) => (
value={props.building.planning_in_local_list} value={props.building.planning_in_local_list}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onCheck}
/> />
<DataEntry <DataEntry
title="Local list link" title="Local list link"
@ -159,7 +159,7 @@ const PlanningView = (props) => (
value={props.building.planning_in_historic_area_assessment} value={props.building.planning_in_historic_area_assessment}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onCheck}
/> />
<DataEntry <DataEntry
title="Historic area assessment link" title="Historic area assessment link"
@ -177,7 +177,7 @@ const PlanningView = (props) => (
value={props.building.planning_demolition_proposed} value={props.building.planning_demolition_proposed}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onCheck}
disabled={true} disabled={true}
/> />
<CheckboxDataEntry <CheckboxDataEntry
@ -186,7 +186,7 @@ const PlanningView = (props) => (
value={props.building.planning_demolition_complete} value={props.building.planning_demolition_complete}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onCheck}
disabled={true} disabled={true}
/> />
<DataEntry <DataEntry