Skip to content

Commit

Permalink
fix: hide notifs wrapper if no notifs
Browse files Browse the repository at this point in the history
  • Loading branch information
asharonbaltazar committed Dec 7, 2022
1 parent 6050e65 commit 9e1112e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/components/context/Notifications/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const Notifications = ({
notifications,
clearNotification,
}: NoticationsProps) => {
if (!notifications.length) {
return null;
}

return (
<div className="hidden fixed z-50 top-1 w-full inset-x-0 pointer-events-none md:flex justify-center">
<div className="flex flex-col gap-y-2 w-96">
Expand Down

0 comments on commit 9e1112e

Please sign in to comment.