Use the PayPal icons instead of WC ones

This commit is contained in:
Narek Zakarian 2024-09-25 17:57:27 +04:00
parent 78cbb94029
commit baea5ba32c
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
9 changed files with 20 additions and 13 deletions

View file

@ -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>
); );
} }

View file

@ -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,
); );
} }
} }

View file

@ -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,
); );
} }
} }

View file

@ -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,
); );
} }
} }

View file

@ -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,
); );
} }
} }

View file

@ -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,
); );
} }
} }

View file

@ -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,
); );
} }
} }

View file

@ -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,
); );
} }
} }

View file

@ -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,
); );
} }
} }