add designers_source_link

This commit is contained in:
Ed Chalstrey 2022-06-01 16:25:20 +01:00
parent 5e23f7b98d
commit ee70071ce5
2 changed files with 28 additions and 0 deletions

View File

@ -81,6 +81,17 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
user_verified_as={props.user_verified.designers}
verified_count={props.building.verified.designers}
/>
<MultiDataEntry
title={dataFields.designers_source_link.title}
slug="designers_source_link"
value={props.building.designers_source_link}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
tooltip={dataFields.designers_source_link.tooltip}
placeholder="https://..."
editableEntries={true}
/>
</Fragment>
);
};
@ -147,6 +158,17 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
user_verified_as={props.user_verified.designers}
verified_count={props.building.verified.designers}
/>
<MultiDataEntry
title={dataFields.designers_source_link.title}
slug="designers_source_link"
value={props.building.designers_source_link}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
tooltip={dataFields.designers_source_link.tooltip}
placeholder="https://..."
editableEntries={true}
/>
</Fragment>
);
};

View File

@ -673,6 +673,12 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
title: "Who were the main designer(s)?",
tooltip: "Free text. First name, space, then Last name.",
example: ["", "", ""],
},
designers_source_link: {
category: Category.Team,
title: "Source links for designers",
tooltip: "URL for source for designers",
example: ["", "", ""],
}
};