Add feature request link

This commit is contained in:
Zhiyuan Zheng 2022-02-10 22:42:46 +01:00
parent 98186e1f2b
commit f96e9af7b9
2 changed files with 20 additions and 2 deletions

View File

@ -240,6 +240,9 @@
"cancel": "$t(common:buttons.cancel)" "cancel": "$t(common:buttons.cancel)"
} }
}, },
"feedback": {
"heading": "Feature Requests"
},
"support": { "support": {
"heading": "Support tooot" "heading": "Support tooot"
}, },

View File

@ -11,7 +11,7 @@ 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 } from '@utils/slices/instancesSlice' import { getInstanceActive } from '@utils/slices/instancesSlice'
import { isCandidate, isDevelopment } from '@utils/checkEnvironment' import { isDevelopment, isRelease } from '@utils/checkEnvironment'
const SettingsTooot: React.FC = () => { const SettingsTooot: React.FC = () => {
const instanceActive = useSelector(getInstanceActive) const instanceActive = useSelector(getInstanceActive)
@ -21,6 +21,21 @@ const SettingsTooot: React.FC = () => {
return ( return (
<MenuContainer> <MenuContainer>
<MenuRow
title={t('me.settings.feedback.heading')}
content={
<Icon
name='MessageSquare'
size={StyleConstants.Font.Size.M}
color={theme.secondary}
/>
}
iconBack='ChevronRight'
onPress={() => {
analytics('settings_feedback_press')
Linking.openURL('https://feedback.tooot.app/')
}}
/>
<MenuRow <MenuRow
title={t('me.settings.support.heading')} title={t('me.settings.support.heading')}
content={ content={
@ -36,7 +51,7 @@ const SettingsTooot: React.FC = () => {
Linking.openURL('https://www.buymeacoffee.com/xmflsct') Linking.openURL('https://www.buymeacoffee.com/xmflsct')
}} }}
/> />
{isDevelopment || isCandidate ? ( {isDevelopment || isRelease ? (
<MenuRow <MenuRow
title={t('me.settings.review.heading')} title={t('me.settings.review.heading')}
content={ content={