cal.pub0.org/apps/web/components/booking
Sangboak Lee 229aeeb0c9
Fix booking time hydration error (#7253)
Root cause of the error is that both server and client try to parse date differently due to localStorage. Since server does not know localStorage when render initial HTML it renders page as if there is no value set for time format.
 On the other hand, client side know the value of time format when it tries to render.

To fix the issue, we force it to parse date with default format at the initial rendering time.

- Add `withDefaultTimeFormat` argument to `parseDate` function
- Add `withDefaultTimeFormat` argument to `parseRecurringDates` function
- Leverage useEffect to dynamically update `withDefaultTimeFormat` arg passed to function

Co-authored-by: sangboak.lee <sangboak.lee@woowahan.com>
Co-authored-by: zomars <zomars@me.com>
2023-03-11 00:24:01 +00:00
..
pages Fix booking time hydration error (#7253) 2023-03-11 00:24:01 +00:00
AvailableEventLocations.tsx Fix/icon size and url (#7605) 2023-03-08 21:59:15 +00:00
AvailableTimes.tsx fixed scroll description size, fixed dark mode toggle switch, fixed date height and positioning, fixed date picker container with negative margin (#7656) 2023-03-10 13:02:48 +00:00
BookingDescription.tsx fixed scroll description size, fixed dark mode toggle switch, fixed date height and positioning, fixed date picker container with negative margin (#7656) 2023-03-10 13:02:48 +00:00
BookingDescriptionPayment.tsx Feature/ Manage Booking Questions (#6560) 2023-03-02 11:15:28 -07:00
BookingListItem.tsx Fix: email encoding bug (#7490) 2023-03-03 09:35:11 -07:00
CancelBooking.tsx
SkeletonLoader.tsx
SlotPicker.tsx fixed scroll description size, fixed dark mode toggle switch, fixed date height and positioning, fixed date picker container with negative margin (#7656) 2023-03-10 13:02:48 +00:00
TimeOptions.tsx
TimezoneDropdown.tsx Filter Timezones by cities (#7118) 2023-03-02 13:42:41 -07:00
UserAvatars.tsx