enable date_year to be edited via Planning

This commit is contained in:
Ed Chalstrey 2022-06-01 11:35:58 +01:00
parent 1dbd4f2964
commit 92fcc44fc9
2 changed files with 3 additions and 8 deletions

View File

@ -31,8 +31,8 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
/>
<NumericDataEntry
slug='work_carried_out'
title={dataFields.work_carried_out.title}
slug='date_year'
title={dataFields.date_year.title}
value={currentBuildingConstructionYear}
mode={props.mode}
copy={props.copy}
@ -40,7 +40,7 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
step={1}
min={1}
max={currentYear}
tooltip={dataFields.work_carried_out.tooltip}
tooltip={dataFields.date_year.tooltip}
/>
</Fragment>
);

View File

@ -645,11 +645,6 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
items: [
"A major extension"
],
},
work_carried_out: {
category: Category.Team,
title: "When was the work carried out?",
tooltip: "Best estimate"
}
};