set AGGrid theme in DashboardLayout

This commit is contained in:
2025-11-14 17:14:43 +09:00
parent 222146bead
commit 06dede7d3b

View File

@ -75,6 +75,14 @@ function DashboardLayout() {
const [navbarOpen, setNavbarOpen] = useState(true)
useEffect(() => {
if (colorScheme === 'dark') {
document.body.dataset.agThemeMode = 'dark'
} else {
document.body.dataset.agThemeMode = 'light'
}
}, [colorScheme])
return (
<div className={classes.root}>
<div className={classes.header}>