From ce17afb5b062cb3387d08b99389be127a174ccb0 Mon Sep 17 00:00:00 2001 From: Luigi Date: Fri, 28 Oct 2022 10:50:37 +0200 Subject: [PATCH] Fix Mini Cart Block global styles #7379 Fix Mini Cart Block global styles --- assets/js/blocks/mini-cart/block.tsx | 8 +------- assets/js/blocks/mini-cart/edit.tsx | 5 +---- assets/js/blocks/mini-cart/index.tsx | 1 - assets/js/blocks/mini-cart/style.scss | 6 ++++-- src/BlockTypes/MiniCart.php | 4 +--- 5 files changed, 7 insertions(+), 17 deletions(-) diff --git a/assets/js/blocks/mini-cart/block.tsx b/assets/js/blocks/mini-cart/block.tsx index 122b1bef62d..f007347fcfd 100644 --- a/assets/js/blocks/mini-cart/block.tsx +++ b/assets/js/blocks/mini-cart/block.tsx @@ -4,7 +4,6 @@ import { renderParentBlock } from '@woocommerce/atomic-utils'; import Drawer from '@woocommerce/base-components/drawer'; import { useStoreCart } from '@woocommerce/base-context/hooks'; -import { useTypographyProps } from '@woocommerce/base-hooks'; import { translateJQueryEventToNative } from '@woocommerce/base-utils'; import { getRegisteredBlockComponents } from '@woocommerce/blocks-registry'; import { @@ -205,8 +204,6 @@ const MiniCartBlock = ( attributes: Props ): JSX.Element => { color: style?.color?.text, }; - const typographyProps = useTypographyProps( attributes ); - return ( <>