Skip to content

Commit 8cc86ba

Browse files
committed
substitute: icon-box, transform to column then let it cascade
1 parent 1119662 commit 8cc86ba

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/block/icon-box/substitute.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export const substitute = {
2+
from: 'stackable/icon-box',
3+
transform: ( oldAttributes, innerBlocks ) => {
4+
return [
5+
'stackable/columns',
6+
{
7+
...oldAttributes,
8+
},
9+
[ [ 'stackable/column', {}, innerBlocks ] ],
10+
]
11+
},
12+
13+
}
14+
15+
export default substitute

0 commit comments

Comments
 (0)