Skip to content

Commit c35716d

Browse files
committed
Fix missing block light wrapper for crop
1 parent da7c016 commit c35716d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • packages/block-library/src/rich-image/rich-image

packages/block-library/src/rich-image/rich-image/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import Cropper from 'react-easy-crop';
99
* WordPress dependencies
1010
*/
1111

12-
import { BlockControls } from '@wordpress/block-editor';
12+
import {
13+
BlockControls,
14+
__experimentalBlock as Block,
15+
} from '@wordpress/block-editor';
1316
import { Fragment, Component } from '@wordpress/element';
1417
import {
1518
Toolbar,
@@ -147,7 +150,7 @@ class RichImage extends Component {
147150
) }
148151

149152
{ isCrop ? (
150-
<div className="richimage__crop-controls">
153+
<Block.div className="richimage__crop-controls">
151154
<div
152155
className="richimage__crop-area"
153156
style={ {
@@ -193,7 +196,7 @@ class RichImage extends Component {
193196
this.setState( { zoom: newZoom } );
194197
} }
195198
/>
196-
</div>
199+
</Block.div>
197200
) : (
198201
<OriginalBlock { ...this.props } />
199202
) }

0 commit comments

Comments
 (0)