1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2022-11-29 23:44:11 +01:00
parent 75800598c2
commit de7498b218
75 changed files with 289 additions and 1421 deletions

View File

@ -1,4 +1,3 @@
import analytics from '@components/analytics'
import Icon from '@components/Icon'
import { MenuContainer, MenuRow } from '@components/Menu'
import { useNavigation } from '@react-navigation/native'
@ -33,29 +32,20 @@ const SettingsTooot: React.FC = () => {
<Icon name='MessageSquare' size={StyleConstants.Font.Size.M} color={colors.secondary} />
}
iconBack='ChevronRight'
onPress={() => {
analytics('settings_feedback_press')
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={() => {
analytics('settings_support_press')
Linking.openURL('https://www.buymeacoffee.com/xmflsct')
}}
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={() => {
analytics('settings_review_press')
StoreReview?.isAvailableAsync().then(() => StoreReview?.requestReview())
}}
onPress={() => StoreReview?.isAvailableAsync().then(() => StoreReview?.requestReview())}
/>
) : null}
<MenuRow