mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 17:28:26 +00:00
fix: hide notifs wrapper if no notifs
This commit is contained in:
@@ -10,6 +10,10 @@ const Notifications = ({
|
|||||||
notifications,
|
notifications,
|
||||||
clearNotification,
|
clearNotification,
|
||||||
}: NoticationsProps) => {
|
}: NoticationsProps) => {
|
||||||
|
if (!notifications.length) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="hidden fixed z-50 top-1 w-full inset-x-0 pointer-events-none md:flex justify-center">
|
<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">
|
<div className="flex flex-col gap-y-2 w-96">
|
||||||
|
|||||||
Reference in New Issue
Block a user