From 64dd81dfe49c8f39a8f7d3681959a84d3de10d01 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 14 Aug 2024 12:06:31 -0700 Subject: [PATCH] revert some mute word ui changes --- src/components/dialogs/MutedWords.tsx | 138 +------------------------- 1 file changed, 4 insertions(+), 134 deletions(-) diff --git a/src/components/dialogs/MutedWords.tsx b/src/components/dialogs/MutedWords.tsx index 38273aad54..0c85bc6f63 100644 --- a/src/components/dialogs/MutedWords.tsx +++ b/src/components/dialogs/MutedWords.tsx @@ -48,7 +48,6 @@ export function MutedWordsDialog() { function MutedWordsInner() { const t = useTheme() const {_} = useLingui() - const {gtMobile} = useBreakpoints() const { isLoading: isPreferencesLoading, data: preferences, @@ -58,8 +57,8 @@ function MutedWordsInner() { const [field, setField] = React.useState('') const [targets, setTargets] = React.useState(['content']) const [error, setError] = React.useState('') - const [durations, setDurations] = React.useState(['forever']) - const [excludeFollowing, setExcludeFollowing] = React.useState(false) + const [durations] = React.useState(['forever']) + const [excludeFollowing] = React.useState(false) const submit = React.useCallback(async () => { const sanitizedValue = sanitizeMutedWordValue(field) @@ -113,13 +112,11 @@ function MutedWordsInner() { - Posts can be muted based on their text, their tags, or both. We - recommend avoiding common words that appear in many posts, since it - can result in no posts being shown. + Posts can be muted based on their text, their tags, or both. - + - - - Duration: - - - - - - - - - - Forever - - - - - - - - - - - 24 hours - - - - - - - - - - - - - 7 days - - - - - - - - - - - 30 days - - - - - - - - - - - Options: - - - - - - - Exclude users you follow - - - - - -