From 2f0adeec0c0a1b08a63fe782e2845a89716bf949 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sat, 15 Jun 2024 09:53:14 +0200 Subject: [PATCH] Field description --- src/fields/attributesField/attributesField.ts | 3 +++ src/fields/iconField/iconField.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fields/attributesField/attributesField.ts b/src/fields/attributesField/attributesField.ts index a1f19dc..7209fc9 100644 --- a/src/fields/attributesField/attributesField.ts +++ b/src/fields/attributesField/attributesField.ts @@ -7,6 +7,9 @@ type AttributesFieldProps = Omit; 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], }); diff --git a/src/fields/iconField/iconField.ts b/src/fields/iconField/iconField.ts index 6f8b287..bba15c7 100644 --- a/src/fields/iconField/iconField.ts +++ b/src/fields/iconField/iconField.ts @@ -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;