Remove generic payment method icons (Stripe CC + Cheque) (https://github.com/woocommerce/woocommerce-blocks/pull/2968)

* 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 1990028a6c98b82750fb917ff3086dbe022ef41d.
This commit is contained in:
Rua Haszard 2020-08-12 08:44:19 +12:00 committed by GitHub
parent 66876c4216
commit 39270f5657
2 changed files with 1 additions and 2 deletions

View File

@ -33,7 +33,7 @@ const Content = () => {
*/
const Label = ( props ) => {
const { PaymentMethodLabel } = props.components;
return <PaymentMethodLabel icon="checkPayment" text={ label } />;
return <PaymentMethodLabel text={ label } />;
};
/**

View File

@ -38,7 +38,6 @@ const StripeLabel = ( props ) => {
return (
<PaymentMethodLabel
icon="card"
text={ __( 'Credit / Debit Card', 'woo-gutenberg-products-block' ) }
/>
);