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

@@ -51,6 +51,9 @@ const DeclineRentalModal: React.FC<DeclineRentalModalProps> = ({
// Call parent callback with updated rental data if we have it
if (updatedRental) {
onDeclineComplete(updatedRental);
// Notify Navbar to update pending count
window.dispatchEvent(new CustomEvent("rentalStatusChanged"));
}
// Reset all states when closing