💩 Hide GooglePay loading animation in editor

This commit is contained in:
Philipp Stracker 2024-10-10 12:24:09 +02:00
parent 5f6447d786
commit 655606e2ea
No known key found for this signature in database

View file

@ -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 ] );