Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 53b3e48

Browse files
committed
Revert using core/group block as inner block for prices
1 parent cb1d864 commit 53b3e48

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

assets/js/atomic/blocks/product-elements/price-v2/edit.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,7 @@ const EditBlock = ( {
122122
>
123123
<div className={ parentClassName }>
124124
<InnerBlocks
125-
allowedBlocks={ [
126-
originalPriceName,
127-
currentPriceName,
128-
'core/group',
129-
] }
125+
allowedBlocks={ [ originalPriceName, currentPriceName ] }
130126
// todo add template for initial price layout
131127
template={ TEMPLATE }
132128
/>

assets/js/atomic/blocks/product-elements/price-v2/template.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
import { InnerBlockTemplate } from '@wordpress/blocks';
55

66
export const TEMPLATE: InnerBlockTemplate[] = [
7-
[
8-
'core/group',
9-
{ layout: { type: 'flex', flexWrap: 'nowrap' } },
10-
[
11-
[ 'woocommerce/original-price', {}, [] ],
12-
[ 'woocommerce/current-price', {}, [] ],
13-
],
14-
],
7+
[ 'woocommerce/original-price', {}, [] ],
8+
[ 'woocommerce/current-price', {}, [] ],
159
];

0 commit comments

Comments
 (0)