mirror of
https://github.com/tooot-app/app
synced 2025-03-06 12:37:44 +01:00
Remove review menu
This commit is contained in:
parent
705c1d0ad0
commit
3345692719
@ -290,9 +290,6 @@
|
|||||||
"support": {
|
"support": {
|
||||||
"heading": "Support tooot"
|
"heading": "Support tooot"
|
||||||
},
|
},
|
||||||
"review": {
|
|
||||||
"heading": "Review tooot"
|
|
||||||
},
|
|
||||||
"contact": {
|
"contact": {
|
||||||
"heading": "Contact tooot"
|
"heading": "Contact tooot"
|
||||||
},
|
},
|
||||||
|
@ -4,13 +4,11 @@ import { useNavigation } from '@react-navigation/native'
|
|||||||
import { StyleConstants } from '@utils/styles/constants'
|
import { StyleConstants } from '@utils/styles/constants'
|
||||||
import { useTheme } from '@utils/styles/ThemeManager'
|
import { useTheme } from '@utils/styles/ThemeManager'
|
||||||
import * as Linking from 'expo-linking'
|
import * as Linking from 'expo-linking'
|
||||||
import * as StoreReview from 'expo-store-review'
|
|
||||||
import * as WebBrowser from 'expo-web-browser'
|
import * as WebBrowser from 'expo-web-browser'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { useSelector } from 'react-redux'
|
import { useSelector } from 'react-redux'
|
||||||
import { getInstanceActive, getInstanceVersion } from '@utils/slices/instancesSlice'
|
import { getInstanceActive, getInstanceVersion } from '@utils/slices/instancesSlice'
|
||||||
import { isDevelopment, isRelease } from '@utils/checkEnvironment'
|
|
||||||
import { Platform } from 'react-native'
|
import { Platform } from 'react-native'
|
||||||
import Constants from 'expo-constants'
|
import Constants from 'expo-constants'
|
||||||
import { getExpoToken } from '@utils/slices/appSlice'
|
import { getExpoToken } from '@utils/slices/appSlice'
|
||||||
@ -27,6 +25,12 @@ const SettingsTooot: React.FC = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<MenuContainer>
|
<MenuContainer>
|
||||||
|
<MenuRow
|
||||||
|
title={t('me.settings.support.heading')}
|
||||||
|
content={<Icon name='Heart' size={StyleConstants.Font.Size.M} color={colors.red} />}
|
||||||
|
iconBack='ChevronRight'
|
||||||
|
onPress={() => Linking.openURL('https://www.buymeacoffee.com/xmflsct')}
|
||||||
|
/>
|
||||||
<MenuRow
|
<MenuRow
|
||||||
title={t('me.settings.feedback.heading')}
|
title={t('me.settings.feedback.heading')}
|
||||||
content={
|
content={
|
||||||
@ -35,20 +39,6 @@ const SettingsTooot: React.FC = () => {
|
|||||||
iconBack='ChevronRight'
|
iconBack='ChevronRight'
|
||||||
onPress={() => Linking.openURL('https://feedback.tooot.app/feature-requests')}
|
onPress={() => Linking.openURL('https://feedback.tooot.app/feature-requests')}
|
||||||
/>
|
/>
|
||||||
<MenuRow
|
|
||||||
title={t('me.settings.support.heading')}
|
|
||||||
content={<Icon name='Heart' size={StyleConstants.Font.Size.M} color={colors.red} />}
|
|
||||||
iconBack='ChevronRight'
|
|
||||||
onPress={() => Linking.openURL('https://www.buymeacoffee.com/xmflsct')}
|
|
||||||
/>
|
|
||||||
{isDevelopment || isRelease ? (
|
|
||||||
<MenuRow
|
|
||||||
title={t('me.settings.review.heading')}
|
|
||||||
content={<Icon name='Star' size={StyleConstants.Font.Size.M} color='#FF9500' />}
|
|
||||||
iconBack='ChevronRight'
|
|
||||||
onPress={() => StoreReview?.isAvailableAsync().then(() => StoreReview?.requestReview())}
|
|
||||||
/>
|
|
||||||
) : null}
|
|
||||||
<MenuRow
|
<MenuRow
|
||||||
title={t('me.settings.contact.heading')}
|
title={t('me.settings.contact.heading')}
|
||||||
content={<Icon name='Mail' size={StyleConstants.Font.Size.M} color={colors.secondary} />}
|
content={<Icon name='Mail' size={StyleConstants.Font.Size.M} color={colors.secondary} />}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user