only show warning when needed

This commit is contained in:
Samuel Newman
2025-06-19 14:49:37 +03:00
parent 6bd916514b
commit fb2cf8b288
+7 -2
View File
@@ -294,14 +294,19 @@ function DisabledNotificationsWarning({active}: {active: boolean}) {
if (!data) return null if (!data) return null
if (!data.reply.list && !data.quote.list && !data.mention.list) {
// mention tab notifications are disabled
return ( return (
<View style={[a.py_md, a.px_lg, a.border_b, t.atoms.border_contrast_low]}> <View style={[a.py_md, a.px_lg, a.border_b, t.atoms.border_contrast_low]}>
<Admonition type="warning"> <Admonition type="warning">
<Trans> <Trans>
You have completely disabled reply, quote, and mention notifications, You have completely disabled reply, quote, and mention
so this tab will no longer update. notifications, so this tab will no longer update.
</Trans> </Trans>
</Admonition> </Admonition>
</View> </View>
) )
} }
return null
}