From ba4fbdd3cd5a52ae25148bf9446c348dc5b946b8 Mon Sep 17 00:00:00 2001 From: Ivan Esteban Date: Thu, 2 Sep 2021 17:22:47 +0200 Subject: [PATCH] feat: builder parent div updated --- src/builder.js | 99 +++++++++++++++++++++++++------------------------- 1 file changed, 49 insertions(+), 50 deletions(-) diff --git a/src/builder.js b/src/builder.js index f7a2a79a..d4e17afa 100644 --- a/src/builder.js +++ b/src/builder.js @@ -201,56 +201,55 @@ const FormBuilder = ({ } return ( -
-
- {form && - Array.isArray(form.questions) && - form.questions.map((question, i) => { - return ( - - {QuestionsMap(question)[question.type] || - QuestionsMap(question).default} - - ) - })} - {form && - form.callForAction && - form.callForAction.map((cfa, key) => { - return ( -
- {form.accessibilityError && ( -
- {form.accessibilityError} -
- )} -
- ) - })} -
+ + {form && + Array.isArray(form.questions) && + form.questions.map((question, i) => { + return ( + + {QuestionsMap(question)[question.type] || + QuestionsMap(question).default} + + ) + })} + {form && + form.callForAction && + form.callForAction.map((cfa, key) => { + return ( +
+ {form.accessibilityError && ( +
+ {form.accessibilityError} +
+ )} +
+ ) + })}
) }