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

Commit

Permalink
Remove generic payment method icons (Stripe CC + Cheque) (#2968)
Browse files Browse the repository at this point in the history
* remove generic icons from Cheque & Stripe CC payment methods

* remove icon prop from PaymentMethodLabel - no longer supported:
- icons should only be used for recognisable brands
- generic icons (e.g. credit card) are not recommended

* Revert "remove icon prop from PaymentMethodLabel - no longer supported:"

This reverts commit 1990028.
  • Loading branch information
haszari committed Aug 11, 2020
1 parent 850c717 commit 074986d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Content = () => {
*/
const Label = ( props ) => {
const { PaymentMethodLabel } = props.components;
return <PaymentMethodLabel icon="checkPayment" text={ label } />;
return <PaymentMethodLabel text={ label } />;
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const StripeLabel = ( props ) => {

return (
<PaymentMethodLabel
icon="card"
text={ __( 'Credit / Debit Card', 'woo-gutenberg-products-block' ) }
/>
);
Expand Down

0 comments on commit 074986d

Please sign in to comment.