Skip to content

fix: make notification badge conditional and show unread count - #6

Merged
GoodnessJohn merged 1 commit into
Rentar-pay:mainfrom
MooreTheAnalyst:fix/notification-badge-issue-2
Jul 10, 2026
Merged

fix: make notification badge conditional and show unread count#6
GoodnessJohn merged 1 commit into
Rentar-pay:mainfrom
MooreTheAnalyst:fix/notification-badge-issue-2

Conversation

@MooreTheAnalyst

Copy link
Copy Markdown
Contributor
  • Create useNotifications hook to fetch notifications from API
  • Update dashboard layout to use useNotifications hook
  • Badge only renders when there are unread notifications
  • Badge shows numeric count (capped at 9+)
  • No layout shift when badge appears/disappears

Closes #2

- Create useNotifications hook to fetch notifications from API
- Update dashboard layout to use useNotifications hook
- Badge only renders when there are unread notifications
- Badge shows numeric count (capped at 9+)
- No layout shift when badge appears/disappears

Fixes Rentar-pay#2
@GoodnessJohn

Copy link
Copy Markdown
Contributor

Checks failed.

@GoodnessJohn
GoodnessJohn merged commit 8c37d16 into Rentar-pay:main Jul 10, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue #2: [Bug] Notification badge in header is always visible — unread count is hardcoded

2 participants