From 3f4abfc3f168fad017af08a8bd413b28f9dce58a Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Fri, 20 Oct 2023 14:43:25 -0400 Subject: [PATCH] Revert "Move PatternTransformationsMenu below transforms" This reverts commit 52d686dcf94ccf11e8f6ff941a2a0a9abfe64fef. --- .../src/components/block-switcher/index.js | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/block-editor/src/components/block-switcher/index.js b/packages/block-editor/src/components/block-switcher/index.js index e4370a8f16472..0960dc87eaa49 100644 --- a/packages/block-editor/src/components/block-switcher/index.js +++ b/packages/block-editor/src/components/block-switcher/index.js @@ -221,6 +221,20 @@ export const BlockSwitcherDropdownMenu = ( { clientIds, blocks } ) => { { ( { onClose } ) => showDropDown && (
+ { hasPatternTransformation && ( + { + onPatternTransform( + transformedBlocks + ); + onClose(); + } } + /> + ) } { hasBlockOrBlockVariationTransforms && ( { } } /> ) } - { hasPatternTransformation && ( - { - onPatternTransform( - transformedBlocks - ); - onClose(); - } } - /> - ) } { hasBlockStyles && (