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:
Luigi Teschio 2024-05-06 10:13:53 +02:00 committed by GitHub
parent 067879263e
commit 2d87573a76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -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>
</>
);
};

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Comment: Product Reviews: not use useBlockProps twice