correction css modal

This commit is contained in:
ORDONNEAU Antoine committed 2026-03-17 08:36:33 +01:00
1 parent 8eed9dc208
commit 08f4926fb8
5 files changed
+27 -58

No files matched your search

-1
View File
@@ -34,5 +34,4 @@
display: flex;
align-items: center;
justify-content: center;
margin-top: 20px;
}
-32
View File
@@ -1,35 +1,3 @@
/*import { createPortal } from "react-dom";
import styles from "./modal.module.css";
import Button from "../button/button.jsx";
const Modal = ({ open, onClose, children, title }) => {
if (!open) return null;
const handleOverlayClick = () => {
onClose();
};
const handleModalClick = (e) => {
e.stopPropagation();
};
return createPortal(
<div className={styles.overlay} onClick={handleOverlayClick}>
<div className={styles.modal} onClick={handleModalClick}>
{title && <h2>{title}</h2>}
{children}
<div className={styles.modalFooter}>
<Button onClick={onClose}>Fermer</Button>
</div>
</div>
</div>,
document.body
);
};
export default Modal;*/
import { createPortal } from "react-dom";
import styles from "./Modal.module.css";
import Button from "../Button/Button";