cal.pub0.org/apps/web/lib/hooks
Nafees Nazik ef6ed6050b
Feat: Add next-themes for theme handling (#3263)
* chore: add next-themes

* feat: add next theme provider

* fix: modify useTheme hook to use next-themes

* fix: use the new hook for theming

* remove conditional rendering with isReady boolean flag

* remove Theme component returned from useTheme hook

* Update missing useTheme usage

* Fix theme switching as per system. Also, ensure that booking and non booking pages can maintain their own requirements of theme simulatenously

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: zomars <zomars@me.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
2022-07-26 08:27:57 +00:00
..
useCurrentUserId.ts Extracts useMeQuery to own hook 2022-05-04 15:28:58 -06:00
useExposePlanGlobally.ts Fixes/app store keys in db (#2651) 2022-05-02 14:39:35 -06:00
useFileReader.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
useInViewObserver.ts Linting fixes round #1 (#2906) 2022-06-06 18:24:37 +00:00
useLocale.ts Migrates components and libs to packages (#2172) 2022-03-16 16:36:43 -07:00
useMeQuery.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
useMediaQuery.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
usePublicPage.ts Remove intercom from public booking pages (#1835) 2022-02-16 08:26:48 -07:00
useSlots.ts Consolidates dayjs in a single package 2022-06-28 14:48:24 -06:00
useTheme.tsx Feat: Add next-themes for theme handling (#3263) 2022-07-26 08:27:57 +00:00
useToggleQuery.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00