From a82918d7a10c57b6fa2766ae1a7d90f4bf7c5f65 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 12 May 2022 15:48:19 +0100 Subject: [PATCH] Merge branch 'source-details-edits-2' into source-details-edits-3 --- .../frontend/building/data-containers/age.tsx | 60 ++++++++++++++++--- 1 file changed, 51 insertions(+), 9 deletions(-) diff --git a/app/src/frontend/building/data-containers/age.tsx b/app/src/frontend/building/data-containers/age.tsx index 4caf5bd9..d493d61f 100644 --- a/app/src/frontend/building/data-containers/age.tsx +++ b/app/src/frontend/building/data-containers/age.tsx @@ -16,7 +16,58 @@ import { CategoryViewProps } from './category-view-props'; */ const AgeView: React.FunctionComponent = (props) => { const currentYear = new Date().getFullYear(); + if (props.building.date_source == "Expert knowledge of building" || "Expert estimate from image"){ + return ( + + + + + + + + ); + }; return ( = (props) => { placeholder="" options={dataFields.date_source.items} /> -