Skip to content

Commit

Permalink
keep pinned top notif
Browse files Browse the repository at this point in the history
  • Loading branch information
rgu0114 committed Dec 19, 2024
1 parent 024a2f1 commit 30fbd31
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions src/components/includes/TopBarNotifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,18 @@ const TopBarNotifications = (
onClick={(e) => e.stopPropagation()}
>
{/* Additional notification when countdownZero is true */}
{countdownZero && (
{hasWrapped && countdownZero && (
<div
onClick={() => handleNotifClick()}
className="notifications__notification"
style={{ backgroundColor: "#DBE8FD", borderRadius: "8px" }}
>
<div className="notification__header">
<div className="notification__title">Queue Me In Wrapped</div>
</div>
<div className="notification__content">
Queue Me In Wrapped has been added to your notifications queue. You can revisit your office
Queue Me In Wrapped has been added to your notifications queue.
You can revisit your office
hour statistics any time by clicking here!
</div>
</div>
Expand All @@ -156,23 +158,6 @@ const TopBarNotifications = (
</div>
))
)}
{/* Additional notification when countdownZero is true */}
{hasWrapped && countdownZero && (
<div
onClick={() => handleNotifClick()}
className="notifications__notification"
style={{ backgroundColor: "#DBE8FD", borderRadius: "8px" }}
>
<div className="notification__header">
<div className="notification__title">Queue Me In Wrapped</div>
</div>
<div className="notification__content">
Queue Me In Wrapped has been added to your notifications queue.
You can revisit your office
hour statistics any time by clicking here!
</div>
</div>
)}
</div>
</div>
);
Expand Down

0 comments on commit 30fbd31

Please sign in to comment.