diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/price/edit.tsx b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/price/edit.tsx index b45238e9f36..1fe4a4640cf 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/price/edit.tsx +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/price/edit.tsx @@ -9,14 +9,11 @@ import { import { useEffect } from '@wordpress/element'; import type { BlockAlignment } from '@wordpress/blocks'; import { useSelect } from '@wordpress/data'; -import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import Block from './block'; -import { BLOCK_TITLE, BLOCK_ICON } from './constants'; -import { ProductSelector } from '../shared/product-selector'; type UnsupportedAligments = 'wide' | 'full'; type AllowedAlignments = Exclude< BlockAlignment, UnsupportedAligments >; @@ -82,52 +79,20 @@ const PriceEdit = ( { ] ); - const showProductSelector = - ! isDescendentOfQueryLoop && - ! isDescendentOfSingleProductTemplate && - ! attributes.isDescendentOfSingleProductBlock; - - if ( ! showProductSelector ) { - return ( - <> - - { - setAttributes( { textAlign } ); - } } - /> - -
- -
- - ); - } - return ( -
- - - { - setAttributes( { textAlign } ); - } } - /> - + <> + + { + setAttributes( { textAlign } ); + } } + /> + +
- -
+
+ ); };