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

Remove colorClassName and style from QuantityBadge #8557

Merged
merged 3 commits into from Mar 2, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 2 additions & 12 deletions assets/js/blocks/mini-cart/quantity-badge/index.tsx
Expand Up @@ -12,27 +12,17 @@ import './style.scss';
interface Props {
count: number;
colorClassNames?: string;
style?: Record< string, string | undefined >;
}

const QuantityBadge = ( {
count,
colorClassNames,
style,
}: Props ): JSX.Element => {
const QuantityBadge = ( { count }: Props ): JSX.Element => {
return (
<span className="wc-block-mini-cart__quantity-badge">
<Icon
className="wc-block-mini-cart__icon"
size={ 20 }
icon={ miniCart }
/>
<span
className={ `wc-block-mini-cart__badge ${ colorClassNames }` }
style={ style }
>
{ count }
</span>
<span className="wc-block-mini-cart__badge">{ count }</span>
</span>
);
};
Expand Down