-u modal operation

This commit is contained in:
Dimas Atmodjo 2024-12-16 00:33:55 +07:00
parent e4fd0596a0
commit 3b447efeae

View File

@ -45,14 +45,14 @@ const ModalOperation = ({
<Modal.Body className='p-4 d-flex flex-column items-center'> <Modal.Body className='p-4 d-flex flex-column items-center'>
<h4 className='mb-4 fw-bold text-red'>ERROR!</h4> <h4 className='mb-4 fw-bold text-red'>ERROR!</h4>
<img src={ask} alt="" className="w-50"/> <img src={ask} alt="" className="w-50"/>
<p className='my-3 text-muted fw-light'>{successMessage}</p> <p className='my-3 text-muted fw-light text-center'>{successMessage}</p>
<Button variant="red" className="w-100 py-2 px-5 rounded-35" onClick={handleClose}>Close</Button> <Button variant="red" className="w-100 py-2 px-5 rounded-35" onClick={handleClose}>Close</Button>
</Modal.Body> </Modal.Body>
):( ):(
<Modal.Body className='p-4 d-flex flex-column items-center'> <Modal.Body className='p-4 d-flex flex-column items-center'>
<h4 className='mb-4 fw-bold text-dark'>Data <span className='text-blue'> Successfully</span> {title}!</h4> <h4 className='mb-4 fw-bold text-dark'>Data <span className='text-blue'> Successfully</span> {title}!</h4>
<img src={title === 'Created'? create : cue } alt="" className="w-50"/> <img src={title === 'Created'? create : cue } alt="" className="w-50"/>
<p className='my-3 text-muted fw-light'>{successMessage}</p> <p className='my-3 text-muted fw-light text-center'>{successMessage}</p>
<Button variant="gd" className="w-100 py-2 px-5 rounded-35" onClick={handleClose}>Got It</Button> <Button variant="gd" className="w-100 py-2 px-5 rounded-35" onClick={handleClose}>Got It</Button>
</Modal.Body> </Modal.Body>
) )