aboutsummaryrefslogtreecommitdiffstats
path: root/sanity/schemas/description.ts
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2023-02-18 15:25:29 +0100
committerivarlovlie <git@ivarlovlie.no>2023-02-18 15:25:29 +0100
commit69d345b334c7a3fecdb0cd5f440fabd83a755309 (patch)
tree09de5c21f7989a98397e6e700f8d4e9347e8bd90 /sanity/schemas/description.ts
parentc709aa638c7d3458dd73c3aabadb4924cb1cb80e (diff)
downloadauroraklinikken.no-69d345b334c7a3fecdb0cd5f440fabd83a755309.tar.xz
auroraklinikken.no-69d345b334c7a3fecdb0cd5f440fabd83a755309.zip
.
Diffstat (limited to 'sanity/schemas/description.ts')
-rw-r--r--sanity/schemas/description.ts21
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