From 61e7af4b76559ab155226ada47f23a1883bc7124 Mon Sep 17 00:00:00 2001 From: ColinRgm Date: Wed, 22 Jan 2025 14:53:06 +0100 Subject: [PATCH] fix: hide popover if click on Non Closes: #230 --- nextjs-interface/src/app/ui/dashboard/DeleteUsersData.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextjs-interface/src/app/ui/dashboard/DeleteUsersData.tsx b/nextjs-interface/src/app/ui/dashboard/DeleteUsersData.tsx index 3befc9a..b8892fb 100644 --- a/nextjs-interface/src/app/ui/dashboard/DeleteUsersData.tsx +++ b/nextjs-interface/src/app/ui/dashboard/DeleteUsersData.tsx @@ -11,7 +11,7 @@ import { useAllUsers } from "@/lib/data"; export default function DeleteUserData({ username }: { username: string }) { - // Fonction pour cacher la popup de suppression + // Function to hide the delete popup const [hidePopup, setHidePopup] = useState(false); const hidePopover = () => { @@ -23,7 +23,7 @@ export default function DeleteUserData({ username }: { username: string }) { - // Fonction de suppression d'un utilisateur + // Function to delete a user const [users, setUsers] = useState([]); const handleDelete = async () => {