admin can soft delete listings

This commit is contained in:
jackiettran
2025-11-20 17:14:40 -05:00
parent 88c831419c
commit b2f18d77f6
11 changed files with 773 additions and 22 deletions

View File

@@ -533,7 +533,7 @@ const Owning: React.FC = () => {
{item.description}
</p>
<div className="mb-2">
<div className="mb-2 d-flex gap-2 flex-wrap">
<span
className={`badge ${
item.availability ? "bg-success" : "bg-secondary"
@@ -541,6 +541,12 @@ const Owning: React.FC = () => {
>
{item.availability ? "Available" : "Not Available"}
</span>
{item.isDeleted && (
<span className="badge bg-danger">
<i className="bi bi-exclamation-triangle-fill me-1"></i>
Deleted by Admin
</span>
)}
</div>
<div className="mb-3">