Skip to content

Commit

Permalink
chore(test-studio): add asset types to structure navigation (#7631)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored Oct 21, 2024
1 parent 01d0313 commit f1f21fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dev/test-studio/structure/resolveStructure.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
BinaryDocumentIcon,
CodeIcon,
CogIcon,
EarthGlobeIcon,
Expand Down Expand Up @@ -231,7 +232,7 @@ export const structure: StructureResolver = (S, {schema, documentStore, i18n}) =
options: {
filter: '_type == "author" || _type == "book"',
},
}),
}).apiVersion('2023-07-28'),
),

// A singleton not using `documentListItem`, eg no built-in preview
Expand Down Expand Up @@ -456,6 +457,9 @@ export const structure: StructureResolver = (S, {schema, documentStore, i18n}) =
]),
)
}),
S.divider(),
S.documentTypeListItem('sanity.imageAsset').icon(ImagesIcon),
S.documentTypeListItem('sanity.fileAsset').icon(BinaryDocumentIcon),
])
}

Expand Down

0 comments on commit f1f21fd

Please sign in to comment.