From 6cb399e7267ae78e3e498bdbf5f51678ffb2cd45 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 21 Feb 2023 23:24:14 +0100 Subject: feat: Many things Configure sanity in same project as the app Implement type safe sanity schema Read localised documents Strip down design --- sanity/schemas/contact.ts | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 sanity/schemas/contact.ts (limited to 'sanity/schemas/contact.ts') diff --git a/sanity/schemas/contact.ts b/sanity/schemas/contact.ts deleted file mode 100644 index 1543e07..0000000 --- a/sanity/schemas/contact.ts +++ /dev/null @@ -1,35 +0,0 @@ -import {baseLanguage} from "./_locales"; - -export default { - name: "contact", - type: "document", - title: "Contact section", - preview: { - select: { - title: `title.${baseLanguage.id}`, - }, - }, - fields: [ - { - title: "Address lines", - name: "addressLines", - type: "array", - of: [{type: "localizedString"}], - }, - { - title: "Email", - name: "email", - type: "string", - }, - { - title: "Phone", - name: "phone", - type: "string", - }, - { - title: "Phone hours", - name: "phoneHours", - type: "localizedString", - }, - ], -}; -- cgit v1.3