Skip to content

Commit 5905f53

Browse files
committed
Remove devtools toggle if sheets
1 parent e280bf8 commit 5905f53

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/src/components/common/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ import { SupportButton } from './Support'
3838

3939
const AppLoggedIn = forwardRef((_props, ref) => {
4040
const email = useSelector((state: RootState) => state.auth.email)
41+
const tool = getParsedIframeInfo().tool
42+
const toolVersion = getParsedIframeInfo().toolVersion
43+
const isSheets = tool == 'google' && toolVersion == 'sheets'
4144
useEffect(() => {
4245
getBillingInfo().then(billingInfo => {
4346
dispatch(setBillingInfo({
@@ -145,7 +148,7 @@ const AppLoggedIn = forwardRef((_props, ref) => {
145148
{sidePanelTabName === 'settings' ? <Settings /> : <TaskUI ref={ref}/>}
146149
<HStack justifyContent="space-between" alignItems="center" width="100%" py="1">
147150
{/* {configs.IS_DEV ? <DevToolsToggle size={"micro"}/> : null} */}
148-
<DevToolsToggle size={"micro"}/>
151+
{ !isSheets && <DevToolsToggle size={"micro"}/>}
149152
<Text fontSize="xs" color="minusxGreen.800" fontWeight={"bold"}>{platformShortcut} to toggle</Text>
150153
<SupportButton email={email} />
151154
</HStack>

0 commit comments

Comments
 (0)