Product Reviews: not use useBlockProps twice (#47136)
* Product Reviews: not use useBlockProps twice * Add changefile(s) from automation for the following project(s): woocommerce-blocks --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
067879263e
commit
2d87573a76
|
@ -6,14 +6,11 @@
|
|||
*/
|
||||
import { WC_BLOCKS_IMAGE_URL } from '@woocommerce/block-settings';
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import { useBlockProps } from '@wordpress/block-editor';
|
||||
import { Notice } from '@wordpress/components';
|
||||
|
||||
export const ProductReviews = () => {
|
||||
const blockProps = useBlockProps();
|
||||
|
||||
return (
|
||||
<div { ...blockProps }>
|
||||
<>
|
||||
<Notice
|
||||
className={ 'wc-block-editor-related-products__notice' }
|
||||
status={ 'info' }
|
||||
|
@ -47,7 +44,7 @@ export const ProductReviews = () => {
|
|||
value={ __( 'Submit', 'woocommerce' ) }
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: tweak
|
||||
Comment: Product Reviews: not use useBlockProps twice
|
||||
|
Loading…
Reference in New Issue