Skip to content

Commit

Permalink
Use __unstableBlockToolbarLastItem component
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Jul 9, 2024
1 parent 96750ff commit ed1d863
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/patterns/src/components/reset-overrides-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import {
store as blockEditorStore,
BlockControls,
__unstableBlockToolbarLastItem as BlockToolbarLastItem,
} from '@wordpress/block-editor';
import { ToolbarButton, ToolbarGroup } from '@wordpress/components';
import { useRegistry, useSelect } from '@wordpress/data';
Expand Down Expand Up @@ -79,12 +79,12 @@ export default function ResetOverridesControl( props ) {
}

return (
<BlockControls group="other">
<BlockToolbarLastItem>
<ToolbarGroup>
<ToolbarButton onClick={ onClick } disabled={ ! isOverriden }>
{ __( 'Reset' ) }
</ToolbarButton>
</ToolbarGroup>
</BlockControls>
</BlockToolbarLastItem>
);
}

0 comments on commit ed1d863

Please sign in to comment.