Change location of Feedback prompt in Products block. (https://github.com/woocommerce/woocommerce-blocks/pull/8382)

With WordPress 6.2, the inspector controls are going to be
tabbed into a “Styles” and “Setting” section (where applicable).
Previously, in order to display our Feedback Prompt at the bottom
of the controls, we had hooked it into the “Colors” section
as a temporary/hacky solution to the problem.

Now that the styles sections are all moved, the problem
doesn't really exist anymore, and we can just place it
at the bottom of the controls.
This commit is contained in:
Lucio Giannotta 2023-02-13 12:26:39 +01:00 committed by GitHub
parent 73788d4378
commit a7c730fbd0
1 changed files with 3 additions and 7 deletions

View File

@ -208,13 +208,6 @@ const ProductQueryControls = ( props: ProductQueryBlock ) => {
) }
</ToolsPanel>
</InspectorControls>
{
// Hacky temporary solution to display the feedback prompt
// at the bottom of the inspector controls
}
<InspectorControls __experimentalGroup="color">
<ProductQueryFeedbackPrompt />
</InspectorControls>
</>
);
};
@ -226,6 +219,9 @@ export const withProductQueryControls =
<>
<ProductQueryControls { ...props } />
<BlockEdit { ...props } />
<InspectorControls>
<ProductQueryFeedbackPrompt />
</InspectorControls>
</>
) : (
<BlockEdit { ...props } />