Skip to content

Commit

Permalink
Use new appearance, rather then appereance
Browse files Browse the repository at this point in the history
  • Loading branch information
matjack1 committed Apr 7, 2023
1 parent 5a9384c commit 3b8bd19
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/hooks/sourceNodes/createNodeFromEntity/field/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const attributes = [
'localized',
'validators',
'position',
'appeareance',
'appearance',
'defaultValue',
];

Expand Down
4 changes: 2 additions & 2 deletions src/hooks/sourceNodes/createNodeFromEntity/item/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ module.exports = function buildItemNode(

let mediaType = 'text/plain';

if (field.appeareance.editor === 'markdown') {
if (field.appearance.editor === 'markdown') {
mediaType = 'text/markdown';
} else if (field.appeareance.editor === 'wysiwyg') {
} else if (field.appearance.editor === 'wysiwyg') {
mediaType = 'text/html';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const attributes = [
'modularBlock',
'draftModeActive',
'allLocalesRequired',
'collectionAppeareance',
'collectionAppearance',
'hasSingletonItem',
];

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/sourceNodes/createTypes/schema/DatoCmsField.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = ({ actions, schema, generateType }) => {
localized: 'Boolean',
validators: 'JSON',
position: 'Int',
appeareance: 'JSON',
appearance: 'JSON',
defaultValue: 'JSON',
originalId: 'String',
},
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/sourceNodes/createTypes/schema/DatoCmsModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = ({ actions, schema, generateType }) => {
modularBlock: 'Boolean',
draftModeActive: 'Boolean',
allLocalesRequired: 'Boolean',
collectionAppeareance: 'String',
collectionAppearance: 'String',
hasSingletonItem: 'Boolean',
originalId: 'String',
fields: {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/graphql-responses/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -2320,7 +2320,7 @@
"modularBlock": false,
"draftModeActive": false,
"allLocalesRequired": false,
"collectionAppeareance": "table",
"collectionAppearance": "table",
"hasSingletonItem": false,
"originalId": "313513"
}
Expand Down
2 changes: 1 addition & 1 deletion test/graphql.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ Suite('items', async () => {
modularBlock
draftModeActive
allLocalesRequired
collectionAppeareance
collectionAppearance
hasSingletonItem
originalId
}
Expand Down

0 comments on commit 3b8bd19

Please sign in to comment.