Skip to content

Commit

Permalink
Move reversed option to layout fieldset
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed May 19, 2022
1 parent f27fc86 commit f0a94ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/Blocks/Quote/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default (props) => {
...(position && ['left', 'right'].includes(position)
? ['value']
: []),
'reversed',
'source',
'sourceInfo',
],
Expand All @@ -27,21 +26,17 @@ export default (props) => {
choices: variations.map((extension) => [extension.id, extension.title]),
defaultValue: 'default',
},
reversed: {
title: 'Reversed',
type: 'boolean',
},
value: {
title: 'Quote',
widget: 'slate_richtext',
widget: 'slate',
},
source: {
title: 'Source',
widget: 'slate_richtext',
widget: 'slate',
},
sourceInfo: {
title: 'Source info',
widget: 'slate_richtext',
widget: 'slate',
},
},
required: [],
Expand Down
6 changes: 5 additions & 1 deletion src/Blocks/Quote/variations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ export default [
...schema,
fieldsets: [
...schema.fieldsets,
{ id: 'layout', title: 'Layout', fields: ['position'] },
{ id: 'layout', title: 'Layout', fields: ['position', 'reversed'] },
],
properties: {
...schema.properties,
position: {
title: 'Alignment',
widget: 'align',
},
reversed: {
title: 'Reversed',
type: 'boolean',
},
},
};
},
Expand Down

0 comments on commit f0a94ac

Please sign in to comment.