From 83b14343c21212c04dab40204608fd7337d33faf Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 29 Jul 2025 09:35:52 +0530 Subject: [PATCH] show a yellow dot --- gui/src/components/Layout.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 0f5bb264c..afc8ffc37 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -28,9 +28,8 @@ import { import OSRContextMenu from "./OSRContextMenu"; import PostHogPageView from "./PosthogPageView"; -const LayoutTopDiv = styled(CustomScrollbarDiv)<{ showBorder: boolean }>` +const LayoutTopDiv = styled(CustomScrollbarDiv)` height: 100%; - border-top: ${(props) => (props.showBorder ? "1px solid yellow" : "none")}; position: relative; overflow-x: hidden; `; @@ -43,7 +42,7 @@ const GridDiv = styled.div` `; const Layout = () => { - const [showBorder, setShowBorder] = useState(false); + const [showStagingIndicator, setShowStagingIndicator] = useState(false); const navigate = useNavigate(); const location = useLocation(); const dispatch = useAppDispatch(); @@ -63,7 +62,7 @@ const Layout = () => { undefined, ); response.status === "success" && - setShowBorder(response.content.AUTH_TYPE.includes("staging")); + setShowStagingIndicator(response.content.AUTH_TYPE.includes("staging")); })(); }, []); @@ -247,7 +246,16 @@ const Layout = () => { return ( - + + {showStagingIndicator && ( +
+ )}