add designers

This commit is contained in:
Ed Chalstrey 2022-06-01 15:54:01 +01:00
parent 29a0eb1919
commit 663a910cc1
2 changed files with 26 additions and 0 deletions

View File

@ -61,6 +61,16 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
mode={props.mode}
copy={props.copy}
/>
<MultiDataEntry
title={dataFields.designers.title}
slug="designers"
value={props.building.designers}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
tooltip={dataFields.designers.tooltip}
editableEntries={true}
/>
</Fragment>
);
};
@ -108,6 +118,16 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
mode={props.mode}
copy={props.copy}
/>
<MultiDataEntry
title={dataFields.designers.title}
slug="designers"
value={props.building.designers}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
tooltip={dataFields.designers.tooltip}
editableEntries={true}
/>
</Fragment>
);
};

View File

@ -667,6 +667,12 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
"Private (company/estate)",
"Other"
]
},
designers: {
category: Category.Team,
title: "Who were the main designer(s)?",
tooltip: "Free text. First name, space, then Last name.",
example: ["", "", ""],
}
};