only show warning when needed

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