From 3b5ca75eefe8175baf10e048b679f3565aeeb43b Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 19 May 2022 10:48:53 +0100 Subject: [PATCH] refactor date verification buttons --- .../data-components/year-data-entry.tsx | 16 ++++++++++ .../frontend/building/data-containers/age.tsx | 32 ------------------- 2 files changed, 16 insertions(+), 32 deletions(-) diff --git a/app/src/frontend/building/data-components/year-data-entry.tsx b/app/src/frontend/building/data-components/year-data-entry.tsx index 472a72d8..d3b7ac18 100644 --- a/app/src/frontend/building/data-components/year-data-entry.tsx +++ b/app/src/frontend/building/data-components/year-data-entry.tsx @@ -73,6 +73,14 @@ class YearDataEntry extends Component { max={currentYear} tooltip={dataFields.date_lower.tooltip} /> + { min={1} max={currentYear} tooltip={dataFields.date_upper.tooltip} + /> + ); diff --git a/app/src/frontend/building/data-containers/age.tsx b/app/src/frontend/building/data-containers/age.tsx index ce6ff6bd..d1916323 100644 --- a/app/src/frontend/building/data-containers/age.tsx +++ b/app/src/frontend/building/data-containers/age.tsx @@ -36,22 +36,6 @@ const AgeView: React.FunctionComponent = (props) => { user_verified_as={props.user_verified.date_year} verified_count={props.building.verified.date_year} /> - - = (props) => { user_verified_as={props.user_verified.date_year} verified_count={props.building.verified.date_year} /> - -