only show warning when needed
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user