Skip to content

Commit

Permalink
add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-luna-ray committed Feb 13, 2024
1 parent caaefbf commit bf724e7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 53 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"sanity"
],
"dependencies": {
"@sanity/icons": "^2.10.2",
"@sanity/vision": "^3.0.0",
"dotenv": "^16.0.3",
"react": "^18.2.0",
Expand Down
16 changes: 15 additions & 1 deletion sanity.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ import { deskTool } from 'sanity/desk';
import { visionTool } from '@sanity/vision';
import { media } from 'sanity-plugin-media';
import { schemaTypes } from './schemas';
import {
HomeIcon,
UsersIcon,
DocumentIcon,
DocumentsIcon,
EarthGlobeIcon,
DocumentTextIcon,
ClipboardImageIcon,
SchemaIcon,
TagsIcon,
} from '@sanity/icons'

export default defineConfig({
name: 'default',
Expand All @@ -17,12 +28,15 @@ export default defineConfig({
.items([
S.listItem()
.title('Global')
.icon(EarthGlobeIcon)
.child(S.document().schemaType('globalSettings').documentId('globalSettings')),
S.listItem()
.title('Profile')
.icon(DocumentTextIcon)
.child(S.document().schemaType('profileDetails').documentId('profileDetails')),
S.listItem()
.title('Pages')
.icon(DocumentsIcon)
.child(
S.list()
.title('Pages')
Expand All @@ -31,7 +45,7 @@ export default defineConfig({
S.documentTypeListItem('landingPage').title('Landing Pages'),
])
),
...S.documentTypeListItems().filter(item => !['globalSettings', 'profileDetails', 'homePage', 'projectsPage'].includes(item.getId())),
...S.documentTypeListItems().filter(item => !['globalSettings', 'profileDetails', 'homePage', 'landingPage'].includes(item.getId())),

]),
}),
Expand Down
52 changes: 0 additions & 52 deletions schemas/pages/projectsPage.ts

This file was deleted.

5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1841,6 +1841,11 @@
resolved "https://registry.yarnpkg.com/@sanity/icons/-/icons-2.2.2.tgz#678386dcd07ac481e456afd07f29be3c86c54c15"
integrity sha512-+Ks6LeYe44kjZSfcWFWj0zQRP48N3JisrZ9ia44QwG11y6bO9Wk8bfhu5o23FkyYrREu9CzQ0U+slSV7YsvcuQ==

"@sanity/icons@^2.10.2":
version "2.10.2"
resolved "https://registry.yarnpkg.com/@sanity/icons/-/icons-2.10.2.tgz#7aed3d83fb51d97ca9db8be9b4b132ff36bad230"
integrity sha512-9lAYAhUpwfa7BIomwAtHpbHdn7GRl1Y1ynoUyV718X10wjcNg49xxxsH/0nfHXdbmdy3Th3pvde0J3vrRg4gjA==

"@sanity/image-url@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@sanity/image-url/-/image-url-1.0.2.tgz#1ff7259e9bad6bfca4169f21c53a4123f6ac78c3"
Expand Down

0 comments on commit bf724e7

Please sign in to comment.