Field description

This commit is contained in:
DrMint 2024-06-15 09:53:14 +02:00
parent 2f6a1e2fd5
commit 2f0adeec0c
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,9 @@ type AttributesFieldProps = Omit<BlockField, "type" | "blocks">;
export const attributesField = ({ ...props }: AttributesFieldProps): BlockField => ({
...props,
admin: {
description: "The order is important. Try to place the most relevant tags first.",
},
type: "blocks",
blocks: [tagsBlock, numberBlock, textBlock],
});

View File

@ -11,7 +11,7 @@ export const iconField = (props: Props): TextField => ({
type: "text",
admin: {
description:
"Select an icon from here: https://icones.js.org/collection/material-symbols. Only outline and regular variants are usable on the website.",
"Select an icon from here: https://icones.js.org/collection/material-symbols. Only regular variants are usable on the website.",
},
validate: (value) => {
if (isEmpty(value)) return true;