get deafult value for date_source

This commit is contained in:
Ed Chalstrey 2022-05-12 15:17:00 +01:00
parent f5ee154b5d
commit 394266cf2c
2 changed files with 18 additions and 17 deletions

View File

@ -63,22 +63,7 @@ const AgeView: React.FunctionComponent<CategoryViewProps> = (props) => {
onChange={props.onChange} onChange={props.onChange}
tooltip={dataFields.date_source.tooltip} tooltip={dataFields.date_source.tooltip}
placeholder="" placeholder=""
options={[ options={dataFields.date_source.items}
"Expert knowledge of building",
"Expert estimate from image",
"Survey of London",
"Pevsner Guides",
"Victoria County History",
"Local history publication",
"Other publication",
"National Heritage List for England",
"Other database or gazetteer",
"Historical map",
"Other archive document",
"Film/Video",
"Other website",
"Other"
]}
/> />
<TextboxDataEntry <TextboxDataEntry
title={dataFields.date_source_detail.title} title={dataFields.date_source_detail.title}

View File

@ -269,7 +269,23 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
category: Category.Age, category: Category.Age,
title: "Source of information", title: "Source of information",
tooltip: "Source for the main start date", tooltip: "Source for the main start date",
example: "", items: [
"Expert knowledge of building",
"Expert estimate from image",
"Survey of London",
"Pevsner Guides",
"Victoria County History",
"Local history publication",
"Other publication",
"National Heritage List for England",
"Other database or gazetteer",
"Historical map",
"Other archive document",
"Film/Video",
"Other website",
"Other"
],
example: "Expert knowledge of building",
}, },
date_source_detail: { date_source_detail: {
category: Category.Age, category: Category.Age,