mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Also note the change in line 43 (new file) where we use `new GooglepayButton` instead of `GooglepayButton.createButton`
16 lines
450 B
JavaScript
16 lines
450 B
JavaScript
import GooglePayPreviewButtonManager from './Preview/GooglePayPreviewButtonManager';
|
|
|
|
/**
|
|
* Accessor that creates and returns a single PreviewButtonManager instance.
|
|
*/
|
|
const buttonManager = () => {
|
|
if ( ! GooglePayPreviewButtonManager.instance ) {
|
|
GooglePayPreviewButtonManager.instance =
|
|
new GooglePayPreviewButtonManager();
|
|
}
|
|
|
|
return GooglePayPreviewButtonManager.instance;
|
|
};
|
|
|
|
// Initialize the preview button manager.
|
|
buttonManager();
|