Merge branch 'PCP-3374-google-pay-button-not-displayed-in-the-word-press-editor-v2' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3374-google-pay-button-not-displayed-in-the-word-press-editor-v2

This commit is contained in:
Daniel Dudzic 2024-10-10 12:25:48 +02:00
commit 5ed73bdbce
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -36,7 +36,9 @@ const GooglepayButton = ( { namespace, buttonConfig, ppcpConfig } ) => {
useEffect( () => {
if ( googlepayButton ) {
setButtonHtml( googlepayButton.outerHTML );
const hideLoader =
'<style>.block-editor-iframe__html .gpay-card-info-animated-progress-bar-container {display:none !important}</style>';
setButtonHtml( googlepayButton.outerHTML + hideLoader );
}
}, [ googlepayButton ] );