mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
💩 Hide GooglePay loading animation in editor
This commit is contained in:
parent
5f6447d786
commit
655606e2ea
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,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 ] );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue