diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-28 20:03:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 20:03:13 -0500 |
commit | a95c03e280ca153ba4a98d6b81ff9d743d4adcaa (patch) | |
tree | d3a63bcc87d24ad4c8e6e3893be0b54aca12b553 /src/view/screens/Settings.tsx | |
parent | e68aa75429c2a0a495105f641361ee8fe22370f1 (diff) | |
download | voidsky-a95c03e280ca153ba4a98d6b81ff9d743d4adcaa.tar.zst |
Implement blocks (#554)
* Quick fix to prompt * Add blocked accounts screen * Add blocking tools to profile * Blur avis/banners of blocked users * Factor blocking state into moderation dsl * Filter post slices from the feed if any are hidden * Handle various block UIs * Filter in the client on blockedBy * Implement block list * Fix some copy * Bump deps * Fix lint
Diffstat (limited to 'src/view/screens/Settings.tsx')
-rw-r--r-- | src/view/screens/Settings.tsx | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index 89e2d78b4..ef02e8189 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -255,7 +255,7 @@ export const SettingsScreen = withAuthRequired( <View style={styles.spacer20} /> <Text type="xl-bold" style={[pal.text, styles.heading]}> - Advanced + Moderation </Text> <TouchableOpacity testID="contentFilteringBtn" @@ -272,6 +272,26 @@ export const SettingsScreen = withAuthRequired( </Text> </TouchableOpacity> <Link + testID="blockedAccountsBtn" + style={[styles.linkCard, pal.view, isSwitching && styles.dimmed]} + href="/settings/blocked-accounts"> + <View style={[styles.iconContainer, pal.btn]}> + <FontAwesomeIcon + icon="ban" + style={pal.text as FontAwesomeIconStyle} + /> + </View> + <Text type="lg" style={pal.text}> + Blocked accounts + </Text> + </Link> + + <View style={styles.spacer20} /> + + <Text type="xl-bold" style={[pal.text, styles.heading]}> + Advanced + </Text> + <Link testID="appPasswordBtn" style={[styles.linkCard, pal.view, isSwitching && styles.dimmed]} href="/settings/app-passwords"> |