From 5d1215f2936b649c7a73c6fb920cfe128540a971 Mon Sep 17 00:00:00 2001
From: timothycarambat
Date: Fri, 11 Aug 2023 17:33:17 -0700
Subject: [PATCH] dont show managed hosting while managed already
---
frontend/src/components/Sidebar/index.jsx | 48 +++++++++++------------
1 file changed, 23 insertions(+), 25 deletions(-)
diff --git a/frontend/src/components/Sidebar/index.jsx b/frontend/src/components/Sidebar/index.jsx
index 4e0cfe87..4a074a34 100644
--- a/frontend/src/components/Sidebar/index.jsx
+++ b/frontend/src/components/Sidebar/index.jsx
@@ -98,17 +98,7 @@ export default function Sidebar() {
Feedback form
-
-
-
- Managed cloud hosting
-
-
-
+
@@ -201,10 +191,11 @@ export function SidebarMobileHeader() {
className={`z-99 fixed top-0 left-0 transition-all duration-500 w-[100vw] h-[100vh]`}
>
setShowSidebar(false)}
/>
@@ -354,3 +336,19 @@ function LogoutButton() {
);
}
+
+function ManagedHosting() {
+ if (window.location.origin.includes(".useanything.com")) return null;
+ return (
+
+
+
+ Managed cloud hosting
+
+
+ );
+}