-
-
-
- {
- const newFilters = { ...filters, approved };
- setFilters(newFilters);
- }}
- />
-
+
+
+
+
+
+
+
+
+
+
+
+ {filters.approved === "pending" ? (
+ Pending Approval
+ ) : (
+ Available Properties
+ )}
+ {dataContext.currentUser?.isHousingLocator && (
+
+ {
+ refreshUnits("pending");
+ }}
+ selected={filters.approved === "pending"}
+ >
+ Pending Listings
+
+ {
+ refreshUnits("approved");
+ }}
+ selected={filters.approved === "approved"}
+ >
+ All Listings
+
+
+ )}
+
+ {viewMode === "card" ? (
+
+ ) : (
+
+ )}
+