Skip to content

Commit d57a2e7

Browse files
committed
fix dependencies
1 parent 177e9b4 commit d57a2e7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

components/MjImageText.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { registerDependencies } from 'mjml-validator'
44
import { BodyComponent } from 'mjml-core'
55
registerDependencies({
66
'mj-image-text': [],
7-
'mj-section': ['mj-image-text']
7+
'mj-body': ['mj-image-text'],
8+
'mj-wrapper': ['mj-image-text'],
89
})
910

1011
export default class MjImageText extends BodyComponent {

components/MjLayout.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ registerDependencies({
1717
'mj-text',
1818
'mj-navbar'
1919
],
20-
// Now tell the validator which tag sare allowed as our component's parent
21-
'mj-wrapper': ['mj-layout']
20+
// Now tell the validator which tags are allowed as our component's parent
21+
'mj-wrapper': ['mj-layout'],
22+
'mj-body': ['mj-layout'],
2223
})
2324

2425
/*

0 commit comments

Comments
 (0)