diff --git a/frontend/src/assets/style/Modal.css b/frontend/src/assets/style/Modal.css new file mode 100644 index 0000000..d11769c --- /dev/null +++ b/frontend/src/assets/style/Modal.css @@ -0,0 +1,31 @@ +.modal-content { + background-color: var(--background-color); + color: var(--primary-text-color); +} + +.modal-header { + border-bottom: 1px solid var(--border-color); +} + +.modal-footer { + border-top: 1px solid var(--border-color); +} + +.modal-title { + color: var(--foreground-color); +} + +.btn-close:hover { + color: var(--select-hover); +} + +.modal-body p { + color: var(--primary-text-color); +} +.modal-header .btn-close { + display: none; +} + +.modal-footer .btn { + box-shadow: none; +} diff --git a/frontend/src/components/Utils/Modals/ConfirmModal.jsx b/frontend/src/components/Utils/Modals/ConfirmModal.jsx index 830eb59..c9037cc 100644 --- a/frontend/src/components/Utils/Modals/ConfirmModal.jsx +++ b/frontend/src/components/Utils/Modals/ConfirmModal.jsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React from 'react'; import { MDBBtn, MDBModal, @@ -9,7 +9,7 @@ import { MDBModalBody, MDBModalFooter, } from 'mdb-react-ui-kit'; - +import '../../../assets/style/Modal.css' const ConfirmModal = ({ isOpen, onClose, title, message, onConfirm }) => { const toggleOpen = () => onClose(); @@ -27,13 +27,13 @@ const ConfirmModal = ({ isOpen, onClose, title, message, onConfirm }) => { onClose={toggleOpen} tabIndex='-1'> - - - {title} + + + {title} -

{message}

- +

{message}

+ Close diff --git a/frontend/src/components/Utils/Modals/MessageModal.jsx b/frontend/src/components/Utils/Modals/MessageModal.jsx index 12bd4ef..98aa871 100644 --- a/frontend/src/components/Utils/Modals/MessageModal.jsx +++ b/frontend/src/components/Utils/Modals/MessageModal.jsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React from "react"; import { MDBBtn, MDBModal,