Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
fix import after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Jan 12, 2022
1 parent e3dd2c5 commit 23f9587
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 125 deletions.
2 changes: 1 addition & 1 deletion assets/js/atomic/blocks/product-elements/rating/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { withProductDataContext } from '@woocommerce/shared-hocs';
* Internal dependencies
*/
import './style.scss';
import { useColorProps } from '../../../../utils/style-attributes-utils';
import { useColorProps } from '../../../../hooks/style-attributes';

/**
* Product Rating Block Component.
Expand Down
11 changes: 10 additions & 1 deletion assets/js/atomic/blocks/product-elements/rating/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { useBlockProps } from '@wordpress/block-editor';

/**
* Internal dependencies
Expand All @@ -11,7 +12,15 @@ import withProductSelector from '../shared/with-product-selector';
import { BLOCK_TITLE, BLOCK_ICON } from './constants';

const Edit = ( { attributes } ) => {
return <Block { ...attributes } />;
const blockProps = useBlockProps( {
className: 'wp-block-woocommerce-product-rating',
} );

return (
<div { ...blockProps }>
<Block { ...attributes } />
</div>
);
};
export default withProductSelector( {
icon: BLOCK_ICON,
Expand Down
123 changes: 0 additions & 123 deletions assets/js/utils/style-attributes-utils.ts

This file was deleted.

0 comments on commit 23f9587

Please sign in to comment.