cal.pub0.org/packages/lib/hooks
Hariom Balhara 6dfc19247e
fix: Embed `theme` not working using Embed API (#10163)
## What does this PR do?

Fixes #10187
See [Tests Done](https://www.loom.com/share/f03e0191b60143d8b45a505042dbfa11)

## Type of change
  - [x] Bug fix (non-breaking change which fixes an issue)

## How should this be tested?
- [x] Configure embed to use `dark` theme and verify that dark theme is shown on event booking page(when user has light theme set). This is failing in main
- Additional Tests for embed to avoid any new regression
	- [x] - Configure "auto" theme using embed API and see it reacts to system theme
	- [x] - Don't configure any theme and see that "light" theme is shown even when we switch system theme(Because User has configured light theme in App)
-  Tests outside embed to avoid any new regression
	- [x] - See that light theme is shown even after switching system theme
	- [x] - Now, switch the user theme to dark and see that it reflects the change. 

## Mandatory Tasks

 [x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.
2023-07-17 18:02:42 -07:00
..
useApp.ts feat: trpc v10 migration (#5332) 2022-11-10 23:40:01 +00:00
useBookerUrl.ts fix: More instances of Avatar and booker links fixed (#10083) 2023-07-13 19:22:21 +05:30
useCallbackRef.ts feat: Auto submit 2FA if all inputs have a value (#9729) 2023-07-13 20:54:57 +00:00
useDebounce.tsx feat: temp admin user management 2023-07-07 18:25:21 +05:30
useHasPaidPlan.ts fix is premium check (#9101) 2023-05-24 18:24:12 +00:00
useIsomorphicLayoutEffect.ts fix: layout effect hook warning (#9226) 2023-06-01 09:45:24 +00:00
useKeyPress.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
useLocale.ts Frontend fixes 2022-06-15 21:19:13 -06:00
useMediaQuery.ts booking page: only scroll to bottom on mobile (#6453) 2023-01-13 17:40:02 +05:30
useOnclickOutside.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
useResponsive.tsx V2 Main (#3549) 2022-08-24 14:18:42 -06:00
useTheme.tsx fix: Embed `theme` not working using Embed API (#10163) 2023-07-17 18:02:42 -07:00
useTypedQuery.ts feat: Routing Forms/Teams Support (#9417) 2023-06-15 08:58:07 +00:00