Skip to content

Commit

Permalink
fix from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Oct 17, 2024
1 parent ce51ab1 commit 95d620a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export default function ChangeDesign( { clientId } ) {
<ToolbarGroup>
<ToolbarButton
isActive={ isOpen }
// label={ __( 'Change Design' ) }
onClick={ () => onToggle( ! isOpen ) }
aria-expanded={ isOpen }
>
Expand Down
11 changes: 3 additions & 8 deletions packages/block-editor/src/components/block-toolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
isReusableBlock,
isTemplatePart,
} from '@wordpress/blocks';
import { ToolbarGroup, ToolbarButton } from '@wordpress/components';
import { ToolbarGroup } from '@wordpress/components';

/**
* Internal dependencies
Expand All @@ -35,7 +35,7 @@ import { store as blockEditorStore } from '../../store';
import __unstableBlockNameContext from './block-name-context';
import NavigableToolbar from '../navigable-toolbar';
import { useHasBlockToolbar } from './use-has-block-toolbar';
import Shuffle from './shuffle';
import ChangeDesign from './change-design';
import { unlock } from '../../lock-unlock';

/**
Expand Down Expand Up @@ -211,12 +211,7 @@ export function PrivateBlockToolbar( {
shouldShowVisualToolbar &&
isMultiToolbar && <BlockGroupToolbar /> }
{ showShuffleButton && (
<ToolbarGroup>
<Shuffle
clientId={ blockClientIds[ 0 ] }
as={ ToolbarButton }
/>
</ToolbarGroup>
<ChangeDesign clientId={ blockClientIds[ 0 ] } />
) }
{ shouldShowVisualToolbar && (
<>
Expand Down

0 comments on commit 95d620a

Please sign in to comment.