diff options
Diffstat (limited to 'sanity/schemas/description.ts')
| -rw-r--r-- | sanity/schemas/description.ts | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/sanity/schemas/description.ts b/sanity/schemas/description.ts index 211aac3..d5d5ff3 100644 --- a/sanity/schemas/description.ts +++ b/sanity/schemas/description.ts @@ -1,14 +1,10 @@ -import { baseLanguage } from "./_locales"; +import { defineType } from "sanity"; -export default { +export default defineType({ name: 'description', type: 'document', title: 'Description section', - preview: { - select: { - title: `title.${baseLanguage.id}` - } - }, + i18n: true, fields: [ { title: "Title", @@ -16,9 +12,12 @@ export default { type: 'string', }, { - title: "Text", - name: "text", - type: "string", + title: "Content", + name: "content", + type: "array", + of: [ + { type: "block" } + ] } ] -}
\ No newline at end of file +})
\ No newline at end of file |
