chore: scaffold turbo monorepo with hono api and react admin web
This commit is contained in:
11
apps/web/src/components/theme-provider.tsx
Normal file
11
apps/web/src/components/theme-provider.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ThemeProvider as NextThemesProvider } from 'next-themes'
|
||||
import type { ComponentProps } from 'react'
|
||||
|
||||
/** Wraps `next-themes` so the theme is toggled by a class on `<html>`. */
|
||||
export function ThemeProvider({ children, ...props }: ComponentProps<typeof NextThemesProvider>) {
|
||||
return (
|
||||
<NextThemesProvider attribute="class" enableSystem disableTransitionOnChange {...props}>
|
||||
{children}
|
||||
</NextThemesProvider>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user