From 3ecfb3f9d2fcc6b588790edd3e11961acadfe1a5 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Wed, 7 Feb 2024 09:45:42 -0800 Subject: [PATCH] Show usage and billing tab on cloud only --- frontend/src/layouts/AppLayout/AppLayout.tsx | 24 +++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx index 3009c0726..075c9d6a9 100644 --- a/frontend/src/layouts/AppLayout/AppLayout.tsx +++ b/frontend/src/layouts/AppLayout/AppLayout.tsx @@ -272,7 +272,7 @@ export const AppLayout = ({ children }: LayoutProps) => { createNotification({ text: "Failed to create workspace", type: "error" }); } }; - + return ( <>
@@ -604,16 +604,18 @@ export const AppLayout = ({ children }: LayoutProps) => { - - - - Usage & Billing - - - + {(window.location.origin.includes("https://app.infisical.com")) && ( + + + + Usage & Billing + + + + )}