mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix wc import
This commit is contained in:
parent
90d8fcc530
commit
da0a17da6a
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
|||
import { registerBlockType } from '@wordpress/blocks';
|
||||
import { registerCheckoutFilters } from '@woocommerce/blocks-checkout';
|
||||
|
||||
import Edit from './edit';
|
||||
import save from './save';
|
||||
|
@ -23,6 +22,8 @@ registerBlockType( blockId, {
|
|||
} );
|
||||
|
||||
document.addEventListener( 'DOMContentLoaded', () => {
|
||||
const { registerCheckoutFilters } = window.wc.blocksCheckout;
|
||||
|
||||
// allow to add this block inside WC cart/checkout blocks
|
||||
registerCheckoutFilters( blockId, {
|
||||
additionalCartCheckoutInnerBlockTypes: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue