mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Use the PayPal icons instead of WC ones
This commit is contained in:
parent
78cbb94029
commit
baea5ba32c
9 changed files with 20 additions and 13 deletions
|
@ -3,7 +3,14 @@ export function APM( { config, components } ) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<PaymentMethodIcons icons={ [ config.icon ] } align="right" />
|
<div
|
||||||
|
className="wc-block-components-payment-method-icons wc-block-components-payment-method-icons--align-right">
|
||||||
|
<img
|
||||||
|
className={`wc-block-components-payment-method-icon wc-block-components-payment-method-icon--${config.id}`}
|
||||||
|
src={config.icon}
|
||||||
|
alt={config.title}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class BancontactPaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $this->gateway->title,
|
'title' => $this->gateway->title,
|
||||||
'description' => $this->gateway->description,
|
'description' => $this->gateway->description,
|
||||||
'icon' => 'bancontact',
|
'icon' => $this->gateway->icon,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class BlikPaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $this->gateway->title,
|
'title' => $this->gateway->title,
|
||||||
'description' => $this->gateway->description,
|
'description' => $this->gateway->description,
|
||||||
'icon' => 'blik',
|
'icon' => $this->gateway->icon,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class EPSPaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $this->gateway->title,
|
'title' => $this->gateway->title,
|
||||||
'description' => $this->gateway->description,
|
'description' => $this->gateway->description,
|
||||||
'icon' => 'eps',
|
'icon' => $this->gateway->icon,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class IDealPaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $this->gateway->title,
|
'title' => $this->gateway->title,
|
||||||
'description' => $this->gateway->description,
|
'description' => $this->gateway->description,
|
||||||
'icon' => 'ideal',
|
'icon' => $this->gateway->icon,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class MultibancoPaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $this->gateway->title,
|
'title' => $this->gateway->title,
|
||||||
'description' => $this->gateway->description,
|
'description' => $this->gateway->description,
|
||||||
'icon' => 'multibanco',
|
'icon' => $this->gateway->icon,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class MyBankPaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $this->gateway->title,
|
'title' => $this->gateway->title,
|
||||||
'description' => $this->gateway->description,
|
'description' => $this->gateway->description,
|
||||||
'icon' => 'mybank',
|
'icon' => $this->gateway->icon,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class P24PaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $this->gateway->title,
|
'title' => $this->gateway->title,
|
||||||
'description' => $this->gateway->description,
|
'description' => $this->gateway->description,
|
||||||
'icon' => 'p24',
|
'icon' => $this->gateway->icon,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class TrustlyPaymentMethod extends AbstractPaymentMethodType {
|
||||||
'id' => $this->name,
|
'id' => $this->name,
|
||||||
'title' => $this->gateway->title,
|
'title' => $this->gateway->title,
|
||||||
'description' => $this->gateway->description,
|
'description' => $this->gateway->description,
|
||||||
'icon' => 'trustly',
|
'icon' => $this->gateway->icon,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue