Skip to content

Commit

Permalink
fix: update desk to structure (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonGriggs authored Jan 31, 2024
1 parent d87089f commit 86a9859
Show file tree
Hide file tree
Showing 6 changed files with 1,258 additions and 1,905 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A Sanity Studio with [Desk Structure](https://www.sanity.io/docs/structure-build

```ts
import {defineConfig} from 'sanity'
import {deskTool, StructureBuilder} from 'sanity/desk'
import {deskTool, StructureBuilder} from 'sanity/structure'

export default defineConfig({
//...
Expand Down Expand Up @@ -54,7 +54,7 @@ The config parameter requires `type`, `S` and `context`. It also accepts `title`

```ts
import {defineConfig} from 'sanity'
import {deskTool, StructureBuilder} from 'sanity/desk'
import {deskTool, StructureBuilder} from 'sanity/structure'
import {orderableDocumentListDeskItem} from '@sanity/orderable-document-list'

export default defineConfig({
Expand Down Expand Up @@ -115,7 +115,7 @@ You can configure the placement of new documents by setting `newItemPosition` to
```js
// sanity.config.js
import {defineConfig} from "sanity";
import {deskTool, StructureBuilder} from "sanity/desk";
import {deskTool, StructureBuilder} from "sanity/structure";
import {orderRankField, orderRankOrdering} from '@sanity/orderable-document-list'

export default defineConfig({
Expand Down
Loading

0 comments on commit 86a9859

Please sign in to comment.