fix: hide notifs wrapper if no notifs

This commit is contained in:
asharonbaltazar
2022-12-07 12:04:53 -05:00
parent 6050e65a59
commit 9e1112eb52

View File

@@ -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">