Closed LucasForster closed 5 years ago
Can you merge master & resolve the conflicts? I have added a hook function that is responsible for booking the bike & updating the hook state accordingly. This conflicts with the refresh function.
@NeoLegends Please resolve the last 4 open conversations if appropriate. If there's something missing, please specify what exactly needs to be changed.
I'm going to work on the UI now (oldest open conversation).
Currently the rent popup isn't updated when a booking is refreshed. It works when canceling the booking, so I'll search for the difference.
Another thought of mine: does the "counter" refresh? Seems like it shows the remaining duration, but the value is only refreshed when opening & closing the popup. Maybe we'd just want to run a timer that keeps the remaining duration current? This might also solve our issues with a booking that has timeouted and the user pressing the refresh button.
Another thought of mine: does the "counter" refresh?
I thought of the same thing, but then I saw that it actually does. I think this is due to useIntervall(fetchbooking)
.
This pull request addresses #14.
I contains the following changes: