Skip to content

Commit

Permalink
Merge pull request #45 from sanity-io/fix/structure
Browse files Browse the repository at this point in the history
fix: change label in structure
  • Loading branch information
SimeonGriggs authored Jan 23, 2024
2 parents 3de49fd + dd8cf82 commit 521c0af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions studio/schemas/documents/labelGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,11 @@ export default defineType({
],
}),
],
preview: {
prepare() {
return {
title: 'Labels',
}
},
},
})
7 changes: 6 additions & 1 deletion studio/structure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ export const structure: StructureResolver = (S) =>
S.documentTypeListItem('legal').title('Legal'),
S.divider(),
// Singleton, field-level translations
S.documentListItem().schemaType('labelGroup').icon(FiType).id('labelGroup').title('Labels'),
S.listItem()
.icon(FiType)
.id('labelGroup')
.schemaType('labelGroup')
.title('Labels')
.child(S.editor().id('labelGroup').schemaType('labelGroup').documentId('labelGroup')),
S.divider(),
])

Expand Down

2 comments on commit 521c0af

@vercel
Copy link

@vercel vercel bot commented on 521c0af Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

demo-course-platform – ./web

demo-course-platform.sanity.build
demo-course-platform-git-main.sanity.build

@vercel
Copy link

@vercel vercel bot commented on 521c0af Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

demo-course-platform-studio – ./studio

demo-course-platform-studio-git-main.sanity.build
demo-course-platform-studio.sanity.build

Please sign in to comment.