add styles per context

This commit is contained in:
David Remer 2020-08-14 10:28:24 +03:00
parent e24fc0d7ab
commit 5de78e1aab
4 changed files with 383 additions and 16 deletions

View file

@ -15,7 +15,7 @@ class Renderer {
return;
}
const style = this.defaultConfig.button.style;
const style = wrapper === this.defaultConfig.button.wrapper ? this.defaultConfig.button.style : this.defaultConfig.button.mini_cart_style;
paypal.Buttons({
style,
...contextConfig,