From f96e9af7b9ad59b23612ab75d896e4e14239672f Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Thu, 10 Feb 2022 22:42:46 +0100 Subject: [PATCH] Add feature request link --- src/i18n/en/screens/tabs.json | 3 +++ src/screens/Tabs/Me/Settings/Tooot.tsx | 19 +++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/i18n/en/screens/tabs.json b/src/i18n/en/screens/tabs.json index 79d5b652..838c2802 100644 --- a/src/i18n/en/screens/tabs.json +++ b/src/i18n/en/screens/tabs.json @@ -240,6 +240,9 @@ "cancel": "$t(common:buttons.cancel)" } }, + "feedback": { + "heading": "Feature Requests" + }, "support": { "heading": "Support tooot" }, diff --git a/src/screens/Tabs/Me/Settings/Tooot.tsx b/src/screens/Tabs/Me/Settings/Tooot.tsx index 08456970..06a6cdb9 100644 --- a/src/screens/Tabs/Me/Settings/Tooot.tsx +++ b/src/screens/Tabs/Me/Settings/Tooot.tsx @@ -11,7 +11,7 @@ import React from 'react' import { useTranslation } from 'react-i18next' import { useSelector } from 'react-redux' import { getInstanceActive } from '@utils/slices/instancesSlice' -import { isCandidate, isDevelopment } from '@utils/checkEnvironment' +import { isDevelopment, isRelease } from '@utils/checkEnvironment' const SettingsTooot: React.FC = () => { const instanceActive = useSelector(getInstanceActive) @@ -21,6 +21,21 @@ const SettingsTooot: React.FC = () => { return ( + + } + iconBack='ChevronRight' + onPress={() => { + analytics('settings_feedback_press') + Linking.openURL('https://feedback.tooot.app/') + }} + /> { Linking.openURL('https://www.buymeacoffee.com/xmflsct') }} /> - {isDevelopment || isCandidate ? ( + {isDevelopment || isRelease ? (