From 4ece1f13ff3a39b107f8ae0387354a72f92088cc Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Tue, 11 Jul 2023 21:35:31 -0300 Subject: [PATCH] Fixed button appearing at start --- .../src/modals/genericModal/index.tsx | 62 ++++++++++--------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/src/frontend/src/modals/genericModal/index.tsx b/src/frontend/src/modals/genericModal/index.tsx index 3d122066a..93590b423 100644 --- a/src/frontend/src/modals/genericModal/index.tsx +++ b/src/frontend/src/modals/genericModal/index.tsx @@ -220,39 +220,41 @@ export default function GenericModal({
- {type === TypeModal.PROMPT && ( -
-
- - - Input Variables: - +
+ {type === TypeModal.PROMPT && ( +
+
+ + + Input Variables: + - {wordsHighlight.map((word, index) => ( - - ( + -
- - {word.replace(/[{}]/g, "").length > 59 - ? word.replace(/[{}]/g, "").slice(0, 56) + "..." - : word.replace(/[{}]/g, "")} - -
-
-
- ))} + +
+ + {word.replace(/[{}]/g, "").length > 59 + ? word.replace(/[{}]/g, "").slice(0, 56) + "..." + : word.replace(/[{}]/g, "")} + +
+
+ + ))} +
-
- )} + )} +