mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 17:51:41 +08:00
Return the style object from the single product config too
This commit is contained in:
parent
3f8b3ba85c
commit
42fe525a0b
1 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
import ButtonsToggleListener from "./ButtonsToggleListener";
|
||||
import Product from "./Product";
|
||||
import onApprove from "./onApproveForContinue";
|
||||
import ButtonsToggleListener from './ButtonsToggleListener';
|
||||
import Product from './Product';
|
||||
import onApprove from './onApproveForContinue';
|
||||
|
||||
class SingleProductConfig {
|
||||
|
||||
constructor(
|
||||
|
@ -31,12 +32,15 @@ class SingleProductConfig {
|
|||
observer.init();
|
||||
}
|
||||
|
||||
const style = this.config.button.style;
|
||||
|
||||
return {
|
||||
createOrder: this.createOrder(),
|
||||
onApprove: onApprove(this),
|
||||
onError: (error) => {
|
||||
this.errorHandler.message(error);
|
||||
}
|
||||
},
|
||||
style,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue