File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/volto-quote-block/src/components Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { useSelector } from 'react-redux';
22
33import { flattenToAppURL } from '@plone/volto/helpers/Url/Url' ;
44import { DetachedTextBlockEditor } from '@plone/volto-slate/blocks/Text/DetachedTextBlockEditor' ;
5+ import Image from '@plone/volto/components/theme/Image/Image' ;
6+
57import { TextBlockView } from '@plone/volto-slate/blocks/Text' ;
68import config from '@plone/volto/registry' ;
79
@@ -25,14 +27,13 @@ const View = (props) => {
2527 { config . blocks ?. blocksConfig ?. quote ?. showImageField &&
2628 data . image ?. [ 0 ] && (
2729 < div className = "image-wrapper" >
28- < img
30+ < Image
2931 src = { `${ flattenToAppURL ( data . image ?. [ 0 ] ?. [ '@id' ] ) } /${
3032 data . image ?. [ 0 ] ?. image_scales ?. image [ 0 ] ?. scales ?. preview
3133 ?. download
3234 } }`}
3335 alt = { data . image ?. [ 0 ] ?. title }
3436 className = "image"
35- loading = "lazy"
3637 />
3738 </ div >
3839 ) }
You can’t perform that action at this time.
0 commit comments