From fec9134d1d0dd93f845a36ca47016bf2300f3a31 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 19 May 2022 10:20:18 +0100 Subject: [PATCH] add verification date_year --- .../frontend/building/data-containers/age.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/src/frontend/building/data-containers/age.tsx b/app/src/frontend/building/data-containers/age.tsx index d1916323..7daeb194 100644 --- a/app/src/frontend/building/data-containers/age.tsx +++ b/app/src/frontend/building/data-containers/age.tsx @@ -30,6 +30,14 @@ const AgeView: React.FunctionComponent = (props) => { copy={props.copy} onChange={props.onChange} + 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} + /> + = (props) => { copy={props.copy} onChange={props.onChange} + 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} + /> +