mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix lint
This commit is contained in:
parent
c794ad20e9
commit
ff18fa7b7f
1 changed files with 16 additions and 17 deletions
|
@ -4,12 +4,11 @@ import PreviewButton from '../../../../ppcp-button/resources/js/modules/Preview/
|
||||||
/**
|
/**
|
||||||
* A single GooglePay preview button instance.
|
* A single GooglePay preview button instance.
|
||||||
*/
|
*/
|
||||||
export default class GooglePayPreviewButton extends PreviewButton { /**
|
export default class GooglePayPreviewButton extends PreviewButton {
|
||||||
* Instance of the preview button.
|
/**
|
||||||
*
|
* @type {?PaymentButton}
|
||||||
* @type {?PaymentButton}
|
*/
|
||||||
*/
|
#button = null;
|
||||||
#button = null;
|
|
||||||
|
|
||||||
constructor( args ) {
|
constructor( args ) {
|
||||||
super( args );
|
super( args );
|
||||||
|
@ -27,18 +26,18 @@ export default class GooglePayPreviewButton extends PreviewButton { /**
|
||||||
}
|
}
|
||||||
|
|
||||||
createButton( buttonConfig ) {
|
createButton( buttonConfig ) {
|
||||||
if (!this.#button) {
|
if ( ! this.#button ) {
|
||||||
this.#button = new GooglepayButton(
|
this.#button = new GooglepayButton(
|
||||||
'preview',
|
'preview',
|
||||||
null,
|
null,
|
||||||
buttonConfig,
|
buttonConfig,
|
||||||
this.ppcpConfig
|
this.ppcpConfig
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.#button.configure( this.apiConfig, null );
|
this.#button.configure( this.apiConfig, null );
|
||||||
this.#button.applyButtonStyles( buttonConfig, this.ppcpConfig );
|
this.#button.applyButtonStyles( buttonConfig, this.ppcpConfig );
|
||||||
this.#button.reinit();
|
this.#button.reinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue