mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
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:
commit
5ed73bdbce
1 changed files with 3 additions and 1 deletions
|
@ -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 ] );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue