Skip to content

Commit

Permalink
Change Edit label to crop icon. (#23387)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Jun 23, 2020
1 parent 2edce7c commit af79063
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { useEffect, useState } from '@wordpress/element';
import { __, sprintf } from '@wordpress/i18n';
import { getPath } from '@wordpress/url';
import { createBlock } from '@wordpress/blocks';
import { crop } from '@wordpress/icons';

/**
* Internal dependencies
Expand Down Expand Up @@ -200,9 +201,9 @@ export default function Image( {
<ToolbarGroup>
<ToolbarButton
onClick={ () => setIsEditingImage( true ) }
>
{ __( 'Crop' ) }
</ToolbarButton>
icon={ crop }
label={ __( 'Crop' ) }
/>
</ToolbarGroup>
) }
{ ! isEditingImage && (
Expand Down

0 comments on commit af79063

Please sign in to comment.