Skip to content

Commit

Permalink
[cli] Add icons to movies-studio (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer J. Sivertsen authored Feb 9, 2018
1 parent 9b6e933 commit 97b9256
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export const datasetUrl = 'https://public.sanity.io/moviesdb.ndjson'

export const dependencies = {
'@sanity/google-maps-input': '^0.99.0',
'react-icons': '^2.2.5',

}

export const generateSanityManifest = base => ({
Expand Down
3 changes: 3 additions & 0 deletions packages/@sanity/cli/templates/moviedb/schemas/movie.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import icon from 'react-icons/lib/md/local-movies'

export default {
name: 'movie',
title: 'Movie',
type: 'document',
icon,
fields: [
{
name: 'title',
Expand Down
3 changes: 3 additions & 0 deletions packages/@sanity/cli/templates/moviedb/schemas/person.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import icon from 'react-icons/lib/md/person'

export default {
name: 'person',
title: 'Person',
type: 'document',
icon,
fields: [
{
name: 'name',
Expand Down
3 changes: 3 additions & 0 deletions packages/@sanity/cli/templates/moviedb/schemas/screening.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import icon from 'react-icons/lib/md/local-play'

export default {
name: 'screening',
title: 'Screening',
type: 'document',
icon,
fields: [
{
name: 'title',
Expand Down
3 changes: 2 additions & 1 deletion packages/movies-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@sanity/production-preview": "0.125.0",
"@sanity/vision": "^0.125.5",
"react": "^15.4.2",
"react-dom": "^15.4.2"
"react-dom": "^15.4.2",
"react-icons": "^2.2.5"
}
}

0 comments on commit 97b9256

Please sign in to comment.