From 22c95fe4904ec9e70088d77643c67c62ba1303f2 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Tue, 2 Aug 2022 15:38:56 +0200 Subject: [PATCH] Add StoreNoticesProvider wrapper back to frontend --- .../blocks/products/all-products/frontend.js | 27 ++++++------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/assets/js/blocks/products/all-products/frontend.js b/assets/js/blocks/products/all-products/frontend.js index cbef10d72..016c95d2f 100644 --- a/assets/js/blocks/products/all-products/frontend.js +++ b/assets/js/blocks/products/all-products/frontend.js @@ -2,7 +2,6 @@ * External dependencies */ import { StoreNoticesProvider } from '@woocommerce/base-context'; -import { renderFrontend } from '@woocommerce/base-utils'; /** * Internal dependencies @@ -15,22 +14,12 @@ import { registerBlockType } from '../../../base/utils/bhe-frontend'; * * @param {*} props */ -// const AllProductsFrontend = ( props ) => { -// return ( -// -// -// -// ); -// }; +const AllProductsFrontend = ( props ) => { + return ( + + + + ); +}; -// const getProps = ( el ) => ( { -// attributes: JSON.parse( el.dataset.attributes ), -// } ); - -// renderFrontend( { -// selector: '.wp-block-woocommerce-all-products', -// Block: AllProductsFrontend, -// getProps, -// } ); - -registerBlockType( 'woocommerce/all-products', Block ); +registerBlockType( 'woocommerce/all-products', AllProductsFrontend );