admin can soft delete listings
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user