replaced vague notes with specific intended use, also fixed modal on top of modal for reviews
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user