From b1e76ad488938cc3cb3991f0479c3d3b74784849 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 14 May 2024 10:44:14 +0200 Subject: [PATCH] handling internal ID --- src/components/ui/Modal.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ui/Modal.jsx b/src/components/ui/Modal.jsx index cea01b0..74ab156 100644 --- a/src/components/ui/Modal.jsx +++ b/src/components/ui/Modal.jsx @@ -1,7 +1,7 @@ import React from "react"; import { useEffect, useRef } from "react"; -export default function Modal({ open, onClose, children, className, closeModal }) { +export default function Modal({ open, onClose, children, className, id, closeModal }) { const modalRef = useRef(null); useEffect(() => { @@ -16,7 +16,7 @@ export default function Modal({ open, onClose, children, className, closeModal } }, [open]); return ( - + {children} );