From 9788ca6c2ed439344efcc7ee083dab15bfdfb409 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Mon, 17 Jul 2023 10:19:13 -0300 Subject: [PATCH] FIxed gap in modal and errors not displaying at CodeAreaModal --- src/frontend/src/modals/baseModal/index.tsx | 5 +++-- .../src/modals/codeAreaModal/index.tsx | 21 +++++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/modals/baseModal/index.tsx b/src/frontend/src/modals/baseModal/index.tsx index 7cb3b2536..b40f39bd1 100644 --- a/src/frontend/src/modals/baseModal/index.tsx +++ b/src/frontend/src/modals/baseModal/index.tsx @@ -105,8 +105,9 @@ function BaseModal({ {headerChild}
{ContentChild}
- -
{ContentFooter}
+ {ContentFooter && ( +
{ContentFooter}
+ )}
); diff --git a/src/frontend/src/modals/codeAreaModal/index.tsx b/src/frontend/src/modals/codeAreaModal/index.tsx index 7a09cde69..e6ef23b53 100644 --- a/src/frontend/src/modals/codeAreaModal/index.tsx +++ b/src/frontend/src/modals/codeAreaModal/index.tsx @@ -133,7 +133,7 @@ export default function CodeAreaModal({
-
+
{ setCode(value); }} - className="h-full w-full rounded-lg border-[1px] border-border custom-scroll" + className="h-full w-full rounded-lg border-[1px] border-gray-300 custom-scroll dark:border-gray-600" />
+
+
+

+ {error?.detail?.error} +

+
+
+                  {error?.detail?.traceback}
+                
+
+
+