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.reply.list && !data.quote.list && !data.mention.list) {
// mention tab notifications are disabled
return (
<View style={[a.py_md, a.px_lg, a.border_b, t.atoms.border_contrast_low]}>
<Admonition type="warning">
<Trans>
You have completely disabled reply, quote, and mention notifications,
so this tab will no longer update.
You have completely disabled reply, quote, and mention
notifications, so this tab will no longer update.
</Trans>
</Admonition>
</View>
)
}
return null
}