Skip to content
This repository was 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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