mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 05:29:12 +00:00
Improve handling of dark mode theme in order to avoid jitter when loading new page
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
'use client'
|
||||
|
||||
import { useIsDarkMode } from '@/app/common/utils'
|
||||
|
||||
export function ThemeProvider({ children }: { children: React.ReactNode }) {
|
||||
const [darkMode, setDarkMode] = useIsDarkMode();
|
||||
return <>{children}</>;
|
||||
}
|
||||
Reference in New Issue
Block a user