From 69d345b334c7a3fecdb0cd5f440fabd83a755309 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 18 Feb 2023 15:25:29 +0100 Subject: . --- sanity/schemas/description.ts | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'sanity/schemas/description.ts') 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 -- cgit v1.3