Fixed pages rerendering on sidebar state change

This commit is contained in:
Daniel Cojocea committed 2024-08-29 02:19:19 -04:00
1 parent aca350495a
commit 111501156f
4 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ function App() {
const PageSpeedWithAdminProp = withAdminProp(PageSpeed);
const MaintenanceWithAdminProp = withAdminProp(Maintenance);
const { mode } = useSelector((state) => state.ui);
const mode = useSelector((state) => state.ui.mode);
return (
<ThemeProvider theme={mode === "light" ? theme : darkTheme}>