diff options
author | Ansh <anshnanda10@gmail.com> | 2023-04-21 16:55:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 18:55:29 -0500 |
commit | 38eb299011672fc840849ae51e67adefef882bec (patch) | |
tree | 71c23c9818e48ecb898b99a3413e09aa3ba7c008 /src/view/screens/Settings.tsx | |
parent | aa56f4a5e2c4236b7ae74ab61e75e419a86ed83d (diff) | |
download | voidsky-38eb299011672fc840849ae51e67adefef882bec.tar.zst |
[APP-522] Create & revoke App Passwords within settings (#505)
* create and delete app passwords * add randomly generated name * Tweak copy and layout of app passwords * Improve app passwords on desktop web * Rearrange settings * Change app-passwords route and add to backend * Fix link * Fix some more desktop web * Remove log --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/screens/Settings.tsx')
-rw-r--r-- | src/view/screens/Settings.tsx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index 76a3efa60..6cf83c391 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -140,7 +140,7 @@ export const SettingsScreen = withAuthRequired( return ( <View style={[s.hContentRegion]} testID="settingsScreen"> - <ViewHeader title="Settings" /> + <ViewHeader title="Settings" showOnDesktop /> <ScrollView style={s.hContentRegion} scrollIndicatorInsets={{right: 1}}> <View style={styles.spacer20} /> <View style={[s.flexRow, styles.heading]}> @@ -267,6 +267,20 @@ export const SettingsScreen = withAuthRequired( Content moderation </Text> </TouchableOpacity> + <Link + testID="appPasswordBtn" + style={[styles.linkCard, pal.view, isSwitching && styles.dimmed]} + href="/settings/app-passwords"> + <View style={[styles.iconContainer, pal.btn]}> + <FontAwesomeIcon + icon="lock" + style={pal.text as FontAwesomeIconStyle} + /> + </View> + <Text type="lg" style={pal.text}> + App Passwords + </Text> + </Link> <TouchableOpacity testID="changeHandleBtn" style={[styles.linkCard, pal.view, isSwitching && styles.dimmed]} |