From 3377ad5f124224ab3efb7296183d2f566eb102d9 Mon Sep 17 00:00:00 2001 From: Stanislav Zhuk Date: Thu, 29 Jun 2023 16:52:30 +0300 Subject: [PATCH] Fix frontend layout --- frontend/views/Overview.tsx | 110 ++++++++++++++++++------------------ 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/frontend/views/Overview.tsx b/frontend/views/Overview.tsx index 1bf20cee..32bfc08e 100644 --- a/frontend/views/Overview.tsx +++ b/frontend/views/Overview.tsx @@ -25,6 +25,7 @@ import { callApi } from "../api/Http"; import MessageItem from "../components/MessageItem"; import QueueIcon from "@mui/icons-material/CalendarViewWeek"; import Grid from "@mui/material/Unstable_Grid2"; +import Box from "@mui/material/Box"; const a11yProps = (id: string, index: number) => { return { @@ -151,10 +152,11 @@ const Overview = () => { }; return ( - - + + { ))} - - - - - - - Messages - - - - - {error !== "" ? ( - - setError("")} - /> - - ) : null} - {queues?.length === 0 ? ( - - - No Queue - No Queues exist in region (default was "eu-central-1") - - - ) : null} - - - {queues?.map((queue, index) => ( - - - {messages?.map((message, index) => ( - - - - - - ))} - - - ))} - + + + + + + Messages + + + + + {error !== "" ? ( + + setError("")} + /> + + ) : null} + {queues?.length === 0 ? ( + + + No Queue + No Queues exist in region (default was "eu-central-1") + + + ) : null} + + + {queues?.map((queue, index) => ( + + + {messages?.map((message, index) => ( + + + + + + ))} + + + ))} - - + + ); };