replaced vague notes with specific intended use, also fixed modal on top of modal for reviews

This commit is contained in:
jackiettran
2025-11-25 16:40:42 -05:00
parent 13268784fd
commit 8de814fdee
16 changed files with 282 additions and 85 deletions

View File

@@ -359,6 +359,14 @@ const Owning: React.FC = () => {
<strong>Total:</strong> ${rental.totalAmount}
</p>
{rental.intendedUse && rental.status === "pending" && (
<div className="alert alert-light mt-2 mb-2 p-2 small">
<strong>Intended Use:</strong>
<br />
{rental.intendedUse}
</div>
)}
{rental.status === "cancelled" &&
rental.refundAmount !== undefined && (
<div className="alert alert-info mt-2 mb-2 p-2 small">
@@ -620,9 +628,7 @@ const Owning: React.FC = () => {
onClick={() => toggleAvailability(item)}
className="btn btn-sm btn-outline-info"
>
{item.isAvailable
? "Mark Unavailable"
: "Mark Available"}
{item.isAvailable ? "Mark Unavailable" : "Mark Available"}
</button>
<button
onClick={() => handleDelete(item.id)}