From 246508464eaf289c4dd4644838af3bc639cf9b44 Mon Sep 17 00:00:00 2001 From: Siddhant Rawal <128523557+siddhantrawal@users.noreply.github.com> Date: Thu, 7 Dec 2023 11:39:37 -0500 Subject: [PATCH] added classname directly to ThemeProvider. --- demo/src/main.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/demo/src/main.tsx b/demo/src/main.tsx index 70e7abb..a722749 100644 --- a/demo/src/main.tsx +++ b/demo/src/main.tsx @@ -14,10 +14,8 @@ import { ThemeContext } from './common/ThemeContext'; export const CustomThemeProvider = ({ children, - className, }: { children: React.ReactNode; - className?: string; }) => { const [theme, setTheme] = React.useState(() => window.matchMedia('(prefers-color-scheme: dark)').matches @@ -27,7 +25,7 @@ export const CustomThemeProvider = ({ return ( - + {children} @@ -37,7 +35,7 @@ export const CustomThemeProvider = ({ createRoot(document.getElementById('root') as HTMLElement).render( - + } /> {DEMOS_LIST.map(({ layouts }) =>