Skip to content

Commit

Permalink
Remove devtools toggle if sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
ppsreejith committed Oct 15, 2024
1 parent e280bf8 commit 5905f53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/components/common/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -145,7 +148,7 @@ const AppLoggedIn = forwardRef((_props, ref) => {
{sidePanelTabName === 'settings' ? <Settings /> : <TaskUI ref={ref}/>}
<HStack justifyContent="space-between" alignItems="center" width="100%" py="1">
{/* {configs.IS_DEV ? <DevToolsToggle size={"micro"}/> : null} */}
<DevToolsToggle size={"micro"}/>
{ !isSheets && <DevToolsToggle size={"micro"}/>}
<Text fontSize="xs" color="minusxGreen.800" fontWeight={"bold"}>{platformShortcut} to toggle</Text>
<SupportButton email={email} />
</HStack>
Expand Down

0 comments on commit 5905f53

Please sign in to comment.