Skip to content

Commit

Permalink
✏️ Rewrite to structuretool from desktool #2607 (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia authored Nov 1, 2024
1 parent 050c927 commit eaa9ceb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sanityv3/sanity.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit eaa9ceb

Please sign in to comment.