From 4b41d7d7f82461813b3464d1b4f931c442bce3be Mon Sep 17 00:00:00 2001 From: Raluca Stan Date: Wed, 9 Feb 2022 11:57:36 +0100 Subject: [PATCH] Add the correct appender button for non empty groups --- .../cart/inner-blocks/cart-items-block/edit.tsx | 1 - .../cart/inner-blocks/cart-totals-block/edit.tsx | 1 - .../cart/inner-blocks/empty-cart-block/edit.tsx | 6 +----- .../inner-blocks/empty-mini-cart-contents-block/edit.tsx | 5 +---- .../inner-blocks/mini-cart-items-block/edit.tsx | 1 - .../checkout/inner-blocks/checkout-fields-block/edit.tsx | 1 - .../checkout/inner-blocks/checkout-totals-block/edit.tsx | 1 - 7 files changed, 2 insertions(+), 14 deletions(-) diff --git a/assets/js/blocks/cart-checkout/cart/inner-blocks/cart-items-block/edit.tsx b/assets/js/blocks/cart-checkout/cart/inner-blocks/cart-items-block/edit.tsx index fc4df087b9d..0871ad60d67 100644 --- a/assets/js/blocks/cart-checkout/cart/inner-blocks/cart-items-block/edit.tsx +++ b/assets/js/blocks/cart-checkout/cart/inner-blocks/cart-items-block/edit.tsx @@ -28,7 +28,6 @@ export const Edit = ( { clientId }: { clientId: string } ): JSX.Element => { allowedBlocks={ allowedBlocks } template={ defaultTemplate } templateLock={ false } - renderAppender={ InnerBlocks.ButtonBlockAppender } /> ); diff --git a/assets/js/blocks/cart-checkout/cart/inner-blocks/cart-totals-block/edit.tsx b/assets/js/blocks/cart-checkout/cart/inner-blocks/cart-totals-block/edit.tsx index 615fc753539..82042dccc06 100644 --- a/assets/js/blocks/cart-checkout/cart/inner-blocks/cart-totals-block/edit.tsx +++ b/assets/js/blocks/cart-checkout/cart/inner-blocks/cart-totals-block/edit.tsx @@ -34,7 +34,6 @@ export const Edit = ( { clientId }: { clientId: string } ): JSX.Element => { allowedBlocks={ allowedBlocks } template={ defaultTemplate } templateLock={ false } - renderAppender={ InnerBlocks.ButtonBlockAppender } /> ); diff --git a/assets/js/blocks/cart-checkout/cart/inner-blocks/empty-cart-block/edit.tsx b/assets/js/blocks/cart-checkout/cart/inner-blocks/empty-cart-block/edit.tsx index 78dc6abdb09..026682211f6 100644 --- a/assets/js/blocks/cart-checkout/cart/inner-blocks/empty-cart-block/edit.tsx +++ b/assets/js/blocks/cart-checkout/cart/inner-blocks/empty-cart-block/edit.tsx @@ -94,11 +94,7 @@ export const Edit = ( { clientId }: { clientId: string } ): JSX.Element => { { ...blockProps } hidden={ currentView !== 'woocommerce/empty-cart-block' } > - + ); }; diff --git a/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/empty-mini-cart-contents-block/edit.tsx b/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/empty-mini-cart-contents-block/edit.tsx index 4e92cf82faa..9ca7a9f66ee 100644 --- a/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/empty-mini-cart-contents-block/edit.tsx +++ b/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/empty-mini-cart-contents-block/edit.tsx @@ -20,10 +20,7 @@ export const Edit = (): JSX.Element => { currentView !== 'woocommerce/empty-mini-cart-contents-block' } > - + ); }; diff --git a/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/mini-cart-items-block/edit.tsx b/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/mini-cart-items-block/edit.tsx index c85b71eb7ce..cf549146343 100644 --- a/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/mini-cart-items-block/edit.tsx +++ b/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/mini-cart-items-block/edit.tsx @@ -20,7 +20,6 @@ export const Edit = (): JSX.Element => {
diff --git a/assets/js/blocks/checkout/inner-blocks/checkout-fields-block/edit.tsx b/assets/js/blocks/checkout/inner-blocks/checkout-fields-block/edit.tsx index eb35dfef8df..819a84678be 100644 --- a/assets/js/blocks/checkout/inner-blocks/checkout-fields-block/edit.tsx +++ b/assets/js/blocks/checkout/inner-blocks/checkout-fields-block/edit.tsx @@ -64,7 +64,6 @@ export const Edit = ( { allowedBlocks={ allowedBlocks } templateLock={ false } template={ defaultTemplate } - renderAppender={ InnerBlocks.ButtonBlockAppender } /> diff --git a/assets/js/blocks/checkout/inner-blocks/checkout-totals-block/edit.tsx b/assets/js/blocks/checkout/inner-blocks/checkout-totals-block/edit.tsx index ad271e3f359..70df014d862 100644 --- a/assets/js/blocks/checkout/inner-blocks/checkout-totals-block/edit.tsx +++ b/assets/js/blocks/checkout/inner-blocks/checkout-totals-block/edit.tsx @@ -57,7 +57,6 @@ export const Edit = ( { allowedBlocks={ allowedBlocks } templateLock={ false } template={ defaultTemplate } - renderAppender={ InnerBlocks.ButtonBlockAppender } /> );