change props values

This commit is contained in:
Ed Chalstrey 2022-04-29 11:13:29 +01:00
parent 2aa89856d1
commit fd2d0f0800

View File

@ -56,7 +56,7 @@ const UseView: React.FunctionComponent<CategoryViewProps> = (props) => (
<SelectDataEntry
title={dataFields.current_landuse_source.title}
slug="use_source"
value={props.building.date_source}
value={props.current_landuse.source}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
@ -82,7 +82,7 @@ const UseView: React.FunctionComponent<CategoryViewProps> = (props) => (
<TextboxDataEntry
title={dataFields.date_source_detail.title}
slug="use_source_detail"
value={props.building.date_source_detail}
value={props.current_landuse.source_detail}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
@ -91,7 +91,7 @@ const UseView: React.FunctionComponent<CategoryViewProps> = (props) => (
<MultiDataEntry
title={dataFields.date_link.title}
slug="use_link"
value={props.building.date_link}
value={props.current_landuse.link}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}