reviews and review history

This commit is contained in:
jackiettran
2025-08-25 16:12:30 -04:00
parent 5d85f77a19
commit 601e11b7e8
7 changed files with 864 additions and 274 deletions

View File

@@ -0,0 +1,60 @@
import React from 'react';
interface SuccessModalProps {
show: boolean;
onClose: () => void;
title?: string;
message: string;
}
const SuccessModal: React.FC<SuccessModalProps> = ({
show,
onClose,
title = "Success!",
message
}) => {
if (!show) return null;
return (
<div
className="modal d-block"
tabIndex={-1}
style={{ backgroundColor: 'rgba(0,0,0,0.5)' }}
>
<div className="modal-dialog modal-dialog-centered">
<div className="modal-content">
<div className="modal-header border-0 pb-0">
<div className="w-100 text-center">
<div
className="mx-auto mb-3 d-flex align-items-center justify-content-center bg-success rounded-circle"
style={{ width: '60px', height: '60px' }}
>
<i className="bi bi-check-lg text-white" style={{ fontSize: '2rem' }}></i>
</div>
<h5 className="modal-title">{title}</h5>
</div>
<button
type="button"
className="btn-close"
onClick={onClose}
></button>
</div>
<div className="modal-body text-center pt-0">
<p className="mb-4">{message}</p>
</div>
<div className="modal-footer border-0 pt-0 justify-content-center">
<button
type="button"
className="btn btn-primary px-4"
onClick={onClose}
>
OK
</button>
</div>
</div>
</div>
</div>
);
};
export default SuccessModal;