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

Commit

Permalink
Remove colorClassName and style from QuantityBadge (#8557)
Browse files Browse the repository at this point in the history
  • Loading branch information
albarin authored Mar 2, 2023
1 parent 710cc23 commit 6edebd1
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions assets/js/blocks/mini-cart/quantity-badge/index.tsx
Original file line number Diff line number Diff line change
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

0 comments on commit 6edebd1

Please sign in to comment.