Added abbreviateNumber for notfication count (#82)
This commit is contained in:
1 parent
284ed9dea1
commit
fc0dc8aea0
1 file changed
+5
@@ -28,3 +28,8 @@ export function getEventCords(ev) {
|
|||||||
detail: ev.detail,
|
detail: ev.detail,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function abbreviateNumber(number) {
|
||||||
|
if (number > 99) return '99+';
|
||||||
|
return number;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user