Adding red dot indicator feature, got main components done

This commit is contained in:
Eshwar Tangirala
2025-05-15 20:19:05 -04:00
parent d6910aa1e8
commit 3f2f6e83fa
4 changed files with 26 additions and 14 deletions

View File

@@ -16,6 +16,9 @@ export function UnreadCount(props: { unreadCount: number, newMessages: boolean |
const count = props.unreadCount >= 10000 ? "10k+" : props.unreadCount
console.log(props.newMessages);
return (
<Tooltip label={props.unreadCount} disabled={props.unreadCount === count} openDelay={Constants.tooltip.delay}>
<Indicator disabled={!props.newMessages} size={4} offset={10} position="top-start" color="orange" withBorder={false} zIndex={5}>