diff --git a/src/Blocks/Quote/schema.js b/src/Blocks/Quote/schema.js index 776ab9d..b81f4cb 100644 --- a/src/Blocks/Quote/schema.js +++ b/src/Blocks/Quote/schema.js @@ -16,7 +16,7 @@ export default (props) => { ? ['value'] : []), 'source', - 'sourceInfo', + 'extra', ], }, ], @@ -34,8 +34,8 @@ export default (props) => { title: 'Source', widget: 'slate', }, - sourceInfo: { - title: 'Source info', + extra: { + title: 'Extra info', widget: 'slate', }, }, diff --git a/src/Blocks/Quote/variations/DefaultQuote.jsx b/src/Blocks/Quote/variations/DefaultQuote.jsx index 4d11e7a..2e446d5 100644 --- a/src/Blocks/Quote/variations/DefaultQuote.jsx +++ b/src/Blocks/Quote/variations/DefaultQuote.jsx @@ -46,7 +46,7 @@ const Quote = (props) => { onFocusPreviousBlock, onSelectBlock, } = props; - const { value, source, sourceInfo, position = null, reversed = false } = data; + const { value, source, extra, position = null, reversed = false } = data; const floated = isFloated(position); const withBlockProperties = React.useCallback( @@ -108,8 +108,8 @@ const Quote = (props) => { {reversed && source && ( {serializeText(source)} )} - {reversed && sourceInfo && ( - {serializeText(sourceInfo)} + {reversed && extra && ( + {serializeText(extra)} )} {mode === 'edit' && !floated ? ( @@ -139,8 +139,8 @@ const Quote = (props) => { {!reversed && source && ( {serializeText(source)} )} - {!reversed && sourceInfo && ( - {serializeText(sourceInfo)} + {!reversed && extra && ( + {serializeText(extra)} )} diff --git a/src/Blocks/Quote/variations/TestimonialQuote.jsx b/src/Blocks/Quote/variations/TestimonialQuote.jsx index 3890207..a3863d3 100644 --- a/src/Blocks/Quote/variations/TestimonialQuote.jsx +++ b/src/Blocks/Quote/variations/TestimonialQuote.jsx @@ -51,7 +51,7 @@ const Testimonial = (props) => { onFocusPreviousBlock, onSelectBlock, } = props; - const { value, source, sourceInfo, image, title } = data; + const { value, source, extra, image, title } = data; const withBlockProperties = React.useCallback( (editor) => { @@ -107,7 +107,7 @@ const Testimonial = (props) => { : image || DefaultImageSVG } title={source} - description={sourceInfo} + description={extra} /> {title && ( diff --git a/src/Blocks/Quote/variations/index.js b/src/Blocks/Quote/variations/index.js index fc47b18..15bfc4d 100644 --- a/src/Blocks/Quote/variations/index.js +++ b/src/Blocks/Quote/variations/index.js @@ -50,7 +50,7 @@ export default [ ...schema.properties, title: { title: 'Title', - widget: 'slate_richtext', + widget: 'slate', }, image: { title: 'Image',