From b3b864d9a5bf26184d297edf8ce694bf0a6c9ac8 Mon Sep 17 00:00:00 2001 From: Niels Lange Date: Thu, 30 Jun 2022 15:35:20 +0200 Subject: [PATCH] Load Cross-Sells block children on frontend --- .../cart-cross-sells-block/frontend.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/frontend.tsx b/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/frontend.tsx index 4fc9ad2897a..f8d7802b207 100644 --- a/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/frontend.tsx +++ b/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/frontend.tsx @@ -1,6 +1,10 @@ -/** - * Internal dependencies - */ -import Block from './block'; +interface Props { + children?: JSX.Element | JSX.Element[]; + className?: string; +} -export default Block; +const FrontendBlock = ( { children, className = '' }: Props ): JSX.Element => { + return
{ children }
; +}; + +export default FrontendBlock;