From eaa9ceb42d77db8c3d4ed3bb82f0dd99d580b813 Mon Sep 17 00:00:00 2001 From: "Malin J." Date: Fri, 1 Nov 2024 14:47:27 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Rewrite=20to=20structureto?= =?UTF-8?q?ol=20from=20desktool=20#2607=20(#2613)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sanityv3/sanity.config.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sanityv3/sanity.config.tsx b/sanityv3/sanity.config.tsx index a26be3c4c..1c7ccd40e 100644 --- a/sanityv3/sanity.config.tsx +++ b/sanityv3/sanity.config.tsx @@ -18,7 +18,7 @@ import type { DocumentBadgeComponent, DocumentFieldAction, } from 'sanity' -import { deskTool, StructureBuilder } from 'sanity/desk' +import { structureTool } from 'sanity/structure' import deskStructure, { defaultDocumentNodeResolver } from './deskStructure' import { schemaTypes } from './schemas' import { initialValueTemplates } from './initialValueTemplates' @@ -88,8 +88,8 @@ const getConfig = (datasetParam: string, projectIdParam: string, isSecret = fals }, plugins: [ documentInternationalization(i18n), - deskTool({ - structure: (S: StructureBuilder, context: ConfigContext) => { + structureTool({ + structure: (S, context: ConfigContext) => { return deskStructure(S, context) }, defaultDocumentNode: defaultDocumentNodeResolver,