Field description
This commit is contained in:
parent
2f6a1e2fd5
commit
2f0adeec0c
|
@ -7,6 +7,9 @@ type AttributesFieldProps = Omit<BlockField, "type" | "blocks">;
|
||||||
|
|
||||||
export const attributesField = ({ ...props }: AttributesFieldProps): BlockField => ({
|
export const attributesField = ({ ...props }: AttributesFieldProps): BlockField => ({
|
||||||
...props,
|
...props,
|
||||||
|
admin: {
|
||||||
|
description: "The order is important. Try to place the most relevant tags first.",
|
||||||
|
},
|
||||||
type: "blocks",
|
type: "blocks",
|
||||||
blocks: [tagsBlock, numberBlock, textBlock],
|
blocks: [tagsBlock, numberBlock, textBlock],
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,7 +11,7 @@ export const iconField = (props: Props): TextField => ({
|
||||||
type: "text",
|
type: "text",
|
||||||
admin: {
|
admin: {
|
||||||
description:
|
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) => {
|
validate: (value) => {
|
||||||
if (isEmpty(value)) return true;
|
if (isEmpty(value)) return true;
|
||||||
|
|
Loading…
Reference in New Issue