Skip to content

Commit

Permalink
fix: Hide Support button on mobile
Browse files Browse the repository at this point in the history
This fix avoid having scroll bar into the bottom bar on mobile browser
  • Loading branch information
cballevre committed May 3, 2024
1 parent 9af3976 commit f954b32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/pushClient/SupportUs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ import { isFlagshipApp } from 'cozy-device-helper'
import Stack from 'cozy-ui/transpiled/react/Stack'
import Typography from 'cozy-ui/transpiled/react/Typography'
import { ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button'
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints'
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'

import styles from './supportUs.styl'

const SupportUs = () => {
const { t } = useI18n()
const instanceInfo = useInstanceInfo()
const { isMobile } = useBreakpoints()

if (!instanceInfo.isLoaded || isFlagshipApp()) return null
if (!instanceInfo.isLoaded || isFlagshipApp() || isMobile) return null

if (shouldDisplayOffers(instanceInfo)) {
return (
Expand Down

0 comments on commit f954b32

Please sign in to comment.