Remove not necessary div
This commit is contained in:
Luigi Teschio 2022-02-14 17:39:04 +01:00 committed by GitHub
parent fba8b3767f
commit 8ae22fbc51
1 changed files with 2 additions and 5 deletions

View File

@ -13,7 +13,6 @@ import {
import { getSettingWithCoercion } from '@woocommerce/settings';
import { isBoolean, isString } from '@woocommerce/types';
import {
RawHTML,
unmountComponentAtNode,
useCallback,
useEffect,
@ -193,10 +192,8 @@ const MiniCartBlock = ( {
<div
className="wc-block-mini-cart__template-part"
ref={ contentsRef }
>
{ /* @todo The `div` wrapper of RawHTML isn't removed on the front end. */ }
<RawHTML>{ contents }</RawHTML>
</div>
dangerouslySetInnerHTML={ { __html: contents } }
></div>
</Drawer>
</>
);