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

@ -1,9 +1,16 @@
export function APM( { config, components } ) {
const { PaymentMethodIcons } = components;
return (
<div>
<PaymentMethodIcons icons={ [ config.icon ] } align="right" />
</div>
);
return (
<div>
<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>
);
}

View file

@ -91,7 +91,7 @@ class BancontactPaymentMethod extends AbstractPaymentMethodType {
'id' => $this->name,
'title' => $this->gateway->title,
'description' => $this->gateway->description,
'icon' => 'bancontact',
'icon' => $this->gateway->icon,
);
}
}

View file

@ -91,7 +91,7 @@ class BlikPaymentMethod extends AbstractPaymentMethodType {
'id' => $this->name,
'title' => $this->gateway->title,
'description' => $this->gateway->description,
'icon' => 'blik',
'icon' => $this->gateway->icon,
);
}
}

View file

@ -91,7 +91,7 @@ class EPSPaymentMethod extends AbstractPaymentMethodType {
'id' => $this->name,
'title' => $this->gateway->title,
'description' => $this->gateway->description,
'icon' => 'eps',
'icon' => $this->gateway->icon,
);
}
}

View file

@ -91,7 +91,7 @@ class IDealPaymentMethod extends AbstractPaymentMethodType {
'id' => $this->name,
'title' => $this->gateway->title,
'description' => $this->gateway->description,
'icon' => 'ideal',
'icon' => $this->gateway->icon,
);
}
}

View file

@ -91,7 +91,7 @@ class MultibancoPaymentMethod extends AbstractPaymentMethodType {
'id' => $this->name,
'title' => $this->gateway->title,
'description' => $this->gateway->description,
'icon' => 'multibanco',
'icon' => $this->gateway->icon,
);
}
}

View file

@ -91,7 +91,7 @@ class MyBankPaymentMethod extends AbstractPaymentMethodType {
'id' => $this->name,
'title' => $this->gateway->title,
'description' => $this->gateway->description,
'icon' => 'mybank',
'icon' => $this->gateway->icon,
);
}
}

View file

@ -91,7 +91,7 @@ class P24PaymentMethod extends AbstractPaymentMethodType {
'id' => $this->name,
'title' => $this->gateway->title,
'description' => $this->gateway->description,
'icon' => 'p24',
'icon' => $this->gateway->icon,
);
}
}

View file

@ -91,7 +91,7 @@ class TrustlyPaymentMethod extends AbstractPaymentMethodType {
'id' => $this->name,
'title' => $this->gateway->title,
'description' => $this->gateway->description,
'icon' => 'trustly',
'icon' => $this->gateway->icon,
);
}
}