From 332a4597cfb3dbd39e0c01745c3328e889bf9962 Mon Sep 17 00:00:00 2001 From: Bastien Dumont <bdumont@grandlyon.com> Date: Tue, 18 Apr 2023 16:09:52 +0200 Subject: [PATCH] change classnames to classes --- src/components/Newsletter/ImagePicker/ImagePicker.tsx | 2 +- src/components/Newsletter/Modal/Modal.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Newsletter/ImagePicker/ImagePicker.tsx b/src/components/Newsletter/ImagePicker/ImagePicker.tsx index c978699f..2e9f6c27 100644 --- a/src/components/Newsletter/ImagePicker/ImagePicker.tsx +++ b/src/components/Newsletter/ImagePicker/ImagePicker.tsx @@ -98,7 +98,7 @@ const ImagePicker: React.FC<ImagePickerProps> = ({ )} {openModal && ( - <Modal classname={'modal-large'}> + <Modal classes={'modal-large'}> <> <div className="image-picker"> {imageNames && diff --git a/src/components/Newsletter/Modal/Modal.tsx b/src/components/Newsletter/Modal/Modal.tsx index c8ca2b97..da3c6c9e 100644 --- a/src/components/Newsletter/Modal/Modal.tsx +++ b/src/components/Newsletter/Modal/Modal.tsx @@ -3,14 +3,14 @@ import { createPortal } from 'react-dom' import './modal.scss' interface ModalProps { children: ReactChild - classname?: string + classes?: string } -const Modal: React.FC<ModalProps> = ({ children, classname }) => { +const Modal: React.FC<ModalProps> = ({ children, classes }) => { return createPortal( <div className="modal-bg"> <div className="modal-container"> - <div className={`modal-content ${classname}`}>{children}</div> + <div className={`modal-content ${classes}`}>{children}</div> </div> </div>, document.body -- GitLab