dark mode side bar panel page
This commit is contained in:
@@ -7,9 +7,8 @@ function Theme() {
|
||||
const [mounted, setMounted] = useState(false);
|
||||
const { theme, setTheme, resolvedTheme } = useTheme();
|
||||
|
||||
console.log(theme);
|
||||
|
||||
useState(() => setMounted(true), []);
|
||||
|
||||
return (
|
||||
<Button
|
||||
className="
|
||||
@@ -20,7 +19,7 @@ function Theme() {
|
||||
!min-h-[32px] md:!min-h-[36px] lg:!min-h-[40px]
|
||||
"
|
||||
// onClick={handleThemeSwitch}
|
||||
onClick={() => setTheme(theme === 'light' ? 'dark' : "light")}
|
||||
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
|
||||
variant="outlined"
|
||||
>
|
||||
<MoonP />
|
||||
|
||||
Reference in New Issue
Block a user