Skip to content

Commit

Permalink
Fix missing block light wrapper for crop
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Mar 24, 2020
1 parent da7c016 commit c35716d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/block-library/src/rich-image/rich-image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import Cropper from 'react-easy-crop';
* WordPress dependencies
*/

import { BlockControls } from '@wordpress/block-editor';
import {
BlockControls,
__experimentalBlock as Block,
} from '@wordpress/block-editor';
import { Fragment, Component } from '@wordpress/element';
import {
Toolbar,
Expand Down Expand Up @@ -147,7 +150,7 @@ class RichImage extends Component {
) }

{ isCrop ? (
<div className="richimage__crop-controls">
<Block.div className="richimage__crop-controls">
<div
className="richimage__crop-area"
style={ {
Expand Down Expand Up @@ -193,7 +196,7 @@ class RichImage extends Component {
this.setState( { zoom: newZoom } );
} }
/>
</div>
</Block.div>
) : (
<OriginalBlock { ...this.props } />
) }
Expand Down

0 comments on commit c35716d

Please sign in to comment.