- {theme.palette.mode === 'dark' ? (
- jereClik('light')} />
+ {mode === 'dark' ? (
+ setMode(mode === 'light' ? 'dark' : 'light')} />
) : (
- jereClik('dark')} />
+ setMode(mode === 'light' ? 'dark' : 'light')} />
)}
diff --git a/components/footer.js b/components/footer.js
index 9f63c77..b26d02c 100644
--- a/components/footer.js
+++ b/components/footer.js
@@ -29,8 +29,10 @@ const Root = styled('div')((
[`& .${classes.footer}`]: {
padding: theme.spacing(1, 2),
marginTop: 'auto',
- backgroundColor:
- theme.palette.mode === 'light' ? theme.palette.grey[100] : '#1E3526'
+ backgroundColor: theme.palette.grey[100],
+ [theme.getColorSchemeSelector('dark')]: {
+ backgroundColor: '#1E3526'
+ }
},
[`& .${classes.text}`]: {