Skip to content

Commit

Permalink
Add Feedback/Support, Discord server to Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Oct 22, 2023
1 parent c6e95f8 commit f7b41f1
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions src/screens/SettingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,28 @@ const SettingScreen = ({ navigation }: StackProps | TabProps): JSX.Element => {
value={settings.disableAutoCorrect}
setValue={disableAutoCorrect => setSettings({ disableAutoCorrect })}
/>
{/* TODO: Text Font, Font Size, Chat Theme, Feedback/Support */}
<Setting name='Version' value={version} />
{/* TODO: Text Font, Font Size, Chat Theme */}
<Setting
name='Privacy Policy'
value='Tap to open the privacy policy in your browser.'
name='Version'
value={version}
onClick={() => {
const url = 'https://github.com/retrixe/EnderChat#privacy-policy'
const url = `https://github.com/retrixe/EnderChat/releases/${version}`
Linking.openURL(url).catch(console.error)
}}
/>
<Setting
name='Feedback/Support'
value='Tap to open the GitHub Issues page, or join our Discord!'
onClick={() => {
const url = 'https://github.com/retrixe/EnderChat/issues'
Linking.openURL(url).catch(console.error)
}}
/>
<Setting
name='Discord Server'
value='Tap to open the Discord server invite.'
onClick={() => {
const url = 'https://discord.gg/MFSJa9TpPS'
Linking.openURL(url).catch(console.error)
}}
/>
Expand All @@ -105,6 +120,14 @@ const SettingScreen = ({ navigation }: StackProps | TabProps): JSX.Element => {
Linking.openURL(url).catch(console.error)
}}
/>
<Setting
name='Privacy Policy'
value='Tap to open the privacy policy in your browser.'
onClick={() => {
const url = 'https://github.com/retrixe/EnderChat#privacy-policy'
Linking.openURL(url).catch(console.error)
}}
/>
</ScrollView>
</>
)
Expand Down

0 comments on commit f7b41f1

Please sign in to comment.