From 05f1dfc6896d3affa7c494a1b955f230d836a4b7 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 27 Oct 2023 18:07:45 +0200 Subject: feat: replace next-themes with a custom ThemeProvider To be honest, next-themes was working fine. However since I use a theme provider for Prism code blocks, some code is duplicated between this app and the library. So I prefer to use a custom Provider without the options I don't need. --- src/utils/hooks/index.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/utils/hooks/index.ts') diff --git a/src/utils/hooks/index.ts b/src/utils/hooks/index.ts index 606c259..4372ca0 100644 --- a/src/utils/hooks/index.ts +++ b/src/utils/hooks/index.ts @@ -10,6 +10,7 @@ export * from './use-headings-tree'; export * from './use-input-autofocus'; export * from './use-is-mounted'; export * from './use-local-storage'; +export * from './use-match-media'; export * from './use-mutation-observer'; export * from './use-on-click-outside'; export * from './use-pagination'; @@ -22,3 +23,5 @@ export * from './use-route-change'; export * from './use-scroll-position'; export * from './use-settings'; export * from './use-state-change'; +export * from './use-system-color-scheme'; +export * from './use-theme'; -- cgit v1.2.3