fix(ui): hide ContentCountBadge when count is 0
This commit is contained in:
parent
4e6b8ec8ee
commit
b520220e1c
|
|
@ -11,7 +11,7 @@ export function ContentCountBadge({
|
||||||
count: number | null;
|
count: number | null;
|
||||||
label?: string;
|
label?: string;
|
||||||
}) {
|
}) {
|
||||||
if (count === null) return null;
|
if (count === null || count <= 0) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.badge}>
|
<View style={styles.badge}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue