From 33bdf069ba94c8f3ca69231dce689d57a3e8b5b7 Mon Sep 17 00:00:00 2001 From: itzamanjain Date: Tue, 29 Oct 2024 21:01:34 +0530 Subject: [PATCH 1/3] added credit usage warning on 80% --- gui/src/components/Layout.tsx | 2 + gui/src/components/usagesWarning.tsx | 132 +++++++++++++++++++++++++++ 2 files changed, 134 insertions(+) create mode 100644 gui/src/components/usagesWarning.tsx diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 5f4b77b28a..01ce84c46f 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -31,6 +31,7 @@ import ProgressBar from "./loaders/ProgressBar"; import PostHogPageView from "./PosthogPageView"; import ProfileSwitcher from "./ProfileSwitcher"; import ShortcutContainer from "./ShortcutContainer"; +import UsageWarning from "./usagesWarning"; // check mac or window const platform = navigator.userAgent.toLowerCase(); @@ -291,6 +292,7 @@ const Layout = () => { + {HIDE_FOOTER_ON_PAGES.includes(location.pathname) || (