Skip to content

Commit

Permalink
feat(Settings): Remove condition on isMobileApp
Browse files Browse the repository at this point in the history
not used anymore so isMobileApp is always false
  • Loading branch information
JF-Cozy committed Aug 12, 2024
1 parent f143ffc commit 91376ca
Showing 1 changed file with 26 additions and 29 deletions.
55 changes: 26 additions & 29 deletions src/components/Settings/SettingsContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useCallback } from 'react'
import PropTypes from 'prop-types'
import flag from 'cozy-flags'

import { isMobileApp, isFlagshipApp } from 'cozy-device-helper'
import { isFlagshipApp } from 'cozy-device-helper'
import { useClient } from 'cozy-client'
import { useWebviewIntent } from 'cozy-intent'
import Icon from 'cozy-ui/transpiled/react/Icon'
Expand Down Expand Up @@ -169,34 +169,31 @@ const SettingsContent = ({
</NavItem>
</NavGroup>
<NavGroup>
{!isMobileApp() && (
<>
<NavItem>
<a
role="menuitem"
target="_blank"
rel="noopener noreferrer"
href="https://support.cozy.io/"
title={t('help')}
>
<MenuIcon icon={HelpIcon} />
{t('help')}
<ExternalLinkIcon />
</a>
</NavItem>
<NavItem>
<a
role="menuitem"
href={getSettingsLink({ client, hash: 'support' })}
target="_self"
title={t('contact')}
>
<MenuIcon icon={EmailIcon} />
{t('contact')}
</a>
</NavItem>
</>
)}
<NavItem>
<a
role="menuitem"
target="_blank"
rel="noopener noreferrer"
href="https://support.cozy.io/"
title={t('help')}
>
<MenuIcon icon={HelpIcon} />
{t('help')}
<ExternalLinkIcon />
</a>
</NavItem>
<NavItem>
<a
role="menuitem"
href={getSettingsLink({ client, hash: 'support' })}
target="_self"
title={t('contact')}
>
<MenuIcon icon={EmailIcon} />
{t('contact')}
</a>
</NavItem>

<NavItem>
<button
type="button"
Expand Down

0 comments on commit 91376ca

Please sign in to comment.