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}
tooltip={dataFields.date_source.tooltip}
placeholder=""
options={[
"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"
]}
options={dataFields.date_source.items}
/>
<TextboxDataEntry
title={dataFields.date_source_detail.title}

View File

@ -269,7 +269,23 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
category: Category.Age,
title: "Source of information",
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: {
category: Category.Age,