badge when owner gets pending rental request

This commit is contained in:
jackiettran
2025-10-31 12:18:40 -04:00
parent 71ce2c63fb
commit 99aa0b3bdc
5 changed files with 95 additions and 3 deletions

View File

@@ -205,6 +205,7 @@ export const rentalAPI = {
createRental: (data: any) => api.post("/rentals", data),
getMyRentals: () => api.get("/rentals/my-rentals"),
getMyListings: () => api.get("/rentals/my-listings"),
getPendingRequestsCount: () => api.get("/rentals/pending-requests-count"),
updateRentalStatus: (id: string, status: string) =>
api.put(`/rentals/${id}/status`, { status }),
markAsCompleted: (id: string) => api.post(`/rentals/${id}/mark-completed`),