add awards_source_link

This commit is contained in:
Ed Chalstrey 2022-06-06 10:53:17 +01:00
parent e47d1fa691
commit dbcd3ecdd9
2 changed files with 22 additions and 0 deletions

View File

@ -136,6 +136,22 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
onChange={props.onChange}
mode={props.mode}
/>
{props.building.designer_awards ? (
<>
<MultiDataEntry
title={dataFields.awards_source_link.title}
slug="awards_source_link"
value={props.building.awards_source_link}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
tooltip={dataFields.awards_source_link.tooltip}
placeholder="https://..."
editableEntries={true}
/>
</>
) : (null)
}
</form>
);
};

View File

@ -699,6 +699,12 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
tooltip: "",
example: false
},
awards_source_link: {
category: Category.Team,
title: "Source links for designer award(s)",
tooltip: "URL for source for designer award(s)",
example: ["", "", ""],
},
};
export const allFieldsConfig = {...dataFields, ...buildingUserFields};