From 793a7b0c5dbe68d6a08556864d397d3a6eefb648 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Tue, 5 Mar 2024 20:30:03 +0530 Subject: [PATCH] Refactor UI layout and fix integration display --- app/ui/src/Layout/BotLayout.tsx | 74 ++++++++++--------- .../src/components/Bot/Playground/index.tsx | 10 +-- app/ui/src/routes/bot/integrations.tsx | 2 +- 3 files changed, 44 insertions(+), 42 deletions(-) diff --git a/app/ui/src/Layout/BotLayout.tsx b/app/ui/src/Layout/BotLayout.tsx index 3f76771d..496c86be 100644 --- a/app/ui/src/Layout/BotLayout.tsx +++ b/app/ui/src/Layout/BotLayout.tsx @@ -183,42 +183,7 @@ export default function BotLayout({ -
-
-
- -
-
-
+
@@ -255,6 +220,43 @@ export default function BotLayout({
*/}
+ +
+
+
+ +
+
+
); diff --git a/app/ui/src/components/Bot/Playground/index.tsx b/app/ui/src/components/Bot/Playground/index.tsx index df07ec8e..f85cb454 100644 --- a/app/ui/src/components/Bot/Playground/index.tsx +++ b/app/ui/src/components/Bot/Playground/index.tsx @@ -7,25 +7,25 @@ import { Skeleton } from "antd"; export const PlaygroundBody = () => { const { isLoading } = useMessage(); return ( -
+
{" "} -
+
-
+
{isLoading ? (
) : (
-
+
-
+
diff --git a/app/ui/src/routes/bot/integrations.tsx b/app/ui/src/routes/bot/integrations.tsx index e6c735be..b61d17b7 100644 --- a/app/ui/src/routes/bot/integrations.tsx +++ b/app/ui/src/routes/bot/integrations.tsx @@ -52,7 +52,7 @@ export default function BotIntegrationRoot() { }, [status]); return ( -
+
{status === "loading" && } {status === "success" && }