Skip to content

Commit

Permalink
fix: hide popover if click on Non
Browse files Browse the repository at this point in the history
Closes: #230
  • Loading branch information
ColinRgm committed Jan 22, 2025
1 parent 20fffe0 commit 61e7af4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nextjs-interface/src/app/ui/dashboard/DeleteUsersData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand All @@ -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<user[]>([]);

const handleDelete = async () => {
Expand Down

0 comments on commit 61e7af4

Please sign in to comment.