cal.pub0.org/apps/web/components
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
..
apps Revamp Google Cal warning for Meet, Amie, and Vimcal (#7308) 2023-03-09 10:07:23 +01:00
auth Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
availability Made Skeleton Loader for Availibilty Page look more like actual content of the page (#7415) 2023-03-03 18:08:10 -07:00
booking Fix booking time hydration error (#7253) 2023-03-11 00:24:01 +00:00
dialog fix: event location not translated in booking page (#7528) 2023-03-07 22:37:56 +00:00
error Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
eventtype [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
getting-started Fixes formatting issues with lists in event type description and bio (#7505) 2023-03-04 00:20:13 +01:00
integrations Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
layouts Tidy up v2 layouts (#6266) 2023-01-05 18:00:16 +01:00
schemas added EventReservationSchema to success page (#5777) 2022-12-05 21:35:44 +00:00
security feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
settings feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
setup feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
team/screens Fixes formatting issues with lists in event type description and bio (#7505) 2023-03-04 00:20:13 +01:00
ui Tree shake icons (#7051) 2023-03-02 13:56:10 -07:00
AddToHomescreen.tsx Reduce bundle size by importing single icons at a time (#6644) 2023-01-23 23:08:01 +00:00
AdditionalCalendarSelector.tsx Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
AppListCard.tsx fix: ui inconsistency in calendar app (#7209) 2023-03-09 00:16:26 +01:00
AppsShell.tsx Fixing App tabs routing (#3711) 2022-08-05 05:21:43 +00:00
BookingsShell.tsx Remove shallow routing (#3401) 2022-07-17 15:42:13 +05:30
DestinationCalendarSelector.tsx Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
Embed.tsx Fix ColorPicker not showing up and Auto theme not working (#7626) 2023-03-09 11:57:59 -07:00
Gates.tsx Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
I18nLanguageHandler.tsx Fix lang and dir attributes not being set (#6243) 2023-01-03 11:09:05 +01:00
ImageUploader.tsx Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
Loader.tsx 🧹 One `calcom/ui` import to rule them all (#5561) 2022-11-22 19:55:25 -07:00
NavTabs.tsx Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
SettingsShell.tsx Fixed href's to go to the right place (#7377) 2023-02-24 11:39:09 -07:00
Slider.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00