rename work_carried_out to year_work_carried_out

This commit is contained in:
Ed Chalstrey 2022-06-01 14:19:42 +01:00
parent 14fd83b7ee
commit 3716e0fc95
2 changed files with 7 additions and 7 deletions

View File

@ -33,7 +33,7 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
<NumericDataEntry
slug='date_year'
title={dataFields.work_carried_out.title}
title={dataFields.year_work_carried_out.title}
value={currentBuildingConstructionYear}
mode={props.mode}
copy={props.copy}
@ -41,7 +41,7 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
step={1}
min={1}
max={currentYear}
tooltip={dataFields.work_carried_out.tooltip}
tooltip={dataFields.year_work_carried_out.tooltip}
/>
</Fragment>
);
@ -62,16 +62,16 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
/>
<NumericDataEntry
slug='work_carried_out'
title={dataFields.work_carried_out.title}
value={props.building.work_carried_out}
slug='year_work_carried_out'
title={dataFields.year_work_carried_out.title}
value={props.building.year_work_carried_out}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
step={1}
min={1}
max={currentYear}
tooltip={dataFields.work_carried_out.tooltip_extension}
tooltip={dataFields.year_work_carried_out.tooltip_extension}
/>
</Fragment>
);

View File

@ -646,7 +646,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
"A major extension"
],
},
work_carried_out: {
year_work_carried_out: {
category: Category.Team,
title: "When was the work carried out?",
tooltip: "This field is the same as 'Year built (best estimate)' in the Age category'",