verfication for each year box

This commit is contained in:
Ed Chalstrey 2022-05-19 10:28:51 +01:00
parent fec9134d1d
commit ba2b4b52ae

View File

@ -35,15 +35,27 @@ const AgeView: React.FunctionComponent<CategoryViewProps> = (props) => {
user_verified={props.user_verified.hasOwnProperty("date_year")}
user_verified_as={props.user_verified.date_year}
verified_count={props.building.verified.date_year}
allow_verify={props.user !== undefined && props.building.date_upper !== null && !props.edited}
// onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("date_upper")}
user_verified_as={props.user_verified.date_upper}
verified_count={props.building.verified.date_upper}
allow_verify={props.user !== undefined && props.building.date_lower !== null && !props.edited}
// onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("date_lower")}
user_verified_as={props.user_verified.date_lower}
verified_count={props.building.verified.date_lower}
/>
<Verification
slug="date_year"
allow_verify={props.user !== undefined && props.building.date_year !== null && !props.edited}
onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("date_year")}
user_verified_as={props.user_verified.date_year}
verified_count={props.building.verified.date_year}
/>
// <Verification
// slug="date_year"
// allow_verify={props.user !== undefined && props.building.date_year !== null && !props.edited}
// onVerify={props.onVerify}
// user_verified={props.user_verified.hasOwnProperty("date_year")}
// user_verified_as={props.user_verified.date_year}
// verified_count={props.building.verified.date_year}
// />
<NumericDataEntry
title={dataFields.facade_year.title}
slug="facade_year"
@ -102,15 +114,27 @@ const AgeView: React.FunctionComponent<CategoryViewProps> = (props) => {
user_verified={props.user_verified.hasOwnProperty("date_year")}
user_verified_as={props.user_verified.date_year}
verified_count={props.building.verified.date_year}
allow_verify={props.user !== undefined && props.building.date_upper !== null && !props.edited}
// onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("date_upper")}
user_verified_as={props.user_verified.date_upper}
verified_count={props.building.verified.date_upper}
allow_verify={props.user !== undefined && props.building.date_lower !== null && !props.edited}
// onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("date_lower")}
user_verified_as={props.user_verified.date_lower}
verified_count={props.building.verified.date_lower}
/>
<Verification
slug="date_year"
allow_verify={props.user !== undefined && props.building.date_year !== null && !props.edited}
onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("date_year")}
user_verified_as={props.user_verified.date_year}
verified_count={props.building.verified.date_year}
/>
// <Verification
// slug="date_year"
// allow_verify={props.user !== undefined && props.building.date_year !== null && !props.edited}
// onVerify={props.onVerify}
// user_verified={props.user_verified.hasOwnProperty("date_year")}
// user_verified_as={props.user_verified.date_year}
// verified_count={props.building.verified.date_year}
// />
<NumericDataEntry
title={dataFields.facade_year.title}
slug="facade_year"