diff --git a/assets/js/atomic/blocks/product-elements/product-details/index.tsx b/assets/js/atomic/blocks/product-elements/product-details/index.tsx index 0ffdc64d2b5..9be38da808f 100644 --- a/assets/js/atomic/blocks/product-elements/product-details/index.tsx +++ b/assets/js/atomic/blocks/product-elements/product-details/index.tsx @@ -2,7 +2,8 @@ * External dependencies */ import { registerBlockSingleProductTemplate } from '@woocommerce/atomic-utils'; -import { WC_BLOCKS_IMAGE_URL } from '@woocommerce/block-settings'; +import { Icon } from '@wordpress/icons'; +import { productDetails } from '@woocommerce/icons'; /** * Internal dependencies @@ -16,16 +17,12 @@ registerBlockSingleProductTemplate( { blockMetadata: metadata, blockSettings: { icon: { - src: () => { - return ( - <> - - - ); - }, + src: ( + + ), }, edit, ancestor: [ 'woocommerce/single-product' ], diff --git a/assets/js/icons/index.js b/assets/js/icons/index.js index 70acf6bdd56..0641668b871 100644 --- a/assets/js/icons/index.js +++ b/assets/js/icons/index.js @@ -17,3 +17,4 @@ export { default as Alert } from './library/alert'; export { default as customerAccount } from './library/customer-account'; export { default as customerAccountStyle } from './library/customer-account-style'; export { default as customerAccountStyleAlt } from './library/customer-account-style-alt'; +export { default as productDetails } from './library/product-details'; diff --git a/assets/js/icons/library/product-details.tsx b/assets/js/icons/library/product-details.tsx new file mode 100644 index 00000000000..ac02ff8667e --- /dev/null +++ b/assets/js/icons/library/product-details.tsx @@ -0,0 +1,27 @@ +/** + * External dependencies + */ +import { SVG } from '@wordpress/primitives'; + +const productDetails = ( + + + + + +); + +export default productDetails; diff --git a/images/blocks/product-details/product-details-icon.svg b/images/blocks/product-details/product-details-icon.svg deleted file mode 100644 index ef2a705b50b..00000000000 --- a/images/blocks/product-details/product-details-icon.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - -