Skip to content

Commit

Permalink
Revert "Move PatternTransformationsMenu below transforms"
Browse files Browse the repository at this point in the history
This reverts commit 52d686dcf94ccf11e8f6ff941a2a0a9abfe64fef.
  • Loading branch information
richtabor committed Oct 20, 2023
1 parent 1af5548 commit 3f4abfc
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions packages/block-editor/src/components/block-switcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,20 @@ export const BlockSwitcherDropdownMenu = ( { clientIds, blocks } ) => {
{ ( { onClose } ) =>
showDropDown && (
<div className="block-editor-block-switcher__container">
{ hasPatternTransformation && (
<PatternTransformationsMenu
blocks={ blocks }
patterns={ patterns }
onSelect={ (
transformedBlocks
) => {
onPatternTransform(
transformedBlocks
);
onClose();
} }
/>
) }
{ hasBlockOrBlockVariationTransforms && (
<BlockTransformationsMenu
className="block-editor-block-switcher__transforms__menugroup"
Expand All @@ -243,20 +257,6 @@ export const BlockSwitcherDropdownMenu = ( { clientIds, blocks } ) => {
} }
/>
) }
{ hasPatternTransformation && (
<PatternTransformationsMenu
blocks={ blocks }
patterns={ patterns }
onSelect={ (
transformedBlocks
) => {
onPatternTransform(
transformedBlocks
);
onClose();
} }
/>
) }
{ hasBlockStyles && (
<BlockStylesMenu
hoveredBlock={ blocks[ 0 ] }
Expand Down

0 comments on commit 3f4abfc

Please sign in to comment.