From 71b09c72f2a69d937a7150fb8812ee7e87fb0486 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 19 May 2022 11:01:26 +0100 Subject: [PATCH] finish prev commit --- app/src/frontend/building/data-containers/age.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/src/frontend/building/data-containers/age.tsx b/app/src/frontend/building/data-containers/age.tsx index 70aaae83..2f9d08e2 100644 --- a/app/src/frontend/building/data-containers/age.tsx +++ b/app/src/frontend/building/data-containers/age.tsx @@ -35,6 +35,18 @@ const AgeView: React.FunctionComponent = (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_upper={props.user !== undefined && props.building.date_upper !== null && !props.edited} + onVerify_upper={props.onVerify} + user_verified_upper={props.user_verified.hasOwnProperty("date_upper")} + user_verified_as_upper={props.user_verified.date_upper} + verified_count_upper={props.building.verified.date_upper} + + allow_verify_lower={props.user !== undefined && props.building.date_lower !== null && !props.edited} + onVerify_lower={props.onVerify} + user_verified_lower={props.user_verified.hasOwnProperty("date_lower")} + user_verified_as_lower={props.user_verified.date_lower} + verified_count_lower={props.building.verified.date_lower} />