From 5905f53895236dec1784b4f0c10f0a80b614fde5 Mon Sep 17 00:00:00 2001
From: Sreejith <1743700+ppsreejith@users.noreply.github.com>
Date: Tue, 15 Oct 2024 13:14:05 -0700
Subject: [PATCH] Remove devtools toggle if sheets
---
web/src/components/common/App.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/src/components/common/App.tsx b/web/src/components/common/App.tsx
index 84ec4a2..e735e6e 100644
--- a/web/src/components/common/App.tsx
+++ b/web/src/components/common/App.tsx
@@ -38,6 +38,9 @@ import { SupportButton } from './Support'
const AppLoggedIn = forwardRef((_props, ref) => {
const email = useSelector((state: RootState) => state.auth.email)
+ const tool = getParsedIframeInfo().tool
+ const toolVersion = getParsedIframeInfo().toolVersion
+ const isSheets = tool == 'google' && toolVersion == 'sheets'
useEffect(() => {
getBillingInfo().then(billingInfo => {
dispatch(setBillingInfo({
@@ -145,7 +148,7 @@ const AppLoggedIn = forwardRef((_props, ref) => {
{sidePanelTabName === 'settings' ? : }
{/* {configs.IS_DEV ? : null} */}
-
+ { !isSheets && }
{platformShortcut} to toggle