diff options
Diffstat (limited to 'src/components/NavBar.tsx')
-rw-r--r-- | src/components/NavBar.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx index 68fc706..de40b4f 100644 --- a/src/components/NavBar.tsx +++ b/src/components/NavBar.tsx @@ -1,13 +1,12 @@ import { useContext } from 'react'; import { Link } from 'react-router-dom'; -import { AppBar, Box, Button, IconButton, Stack, Toolbar, Typography } from '@mui/material'; +import { AppBar, Button, IconButton, Stack, Toolbar, Typography } from '@mui/material'; import DarkModeIcon from '@mui/icons-material/DarkMode'; import LightModeIcon from '@mui/icons-material/LightMode'; import { useTheme } from '@mui/material/styles'; - import { ThemeContext } from '../ThemeContextProvider'; -function NavBar({ mode }) { +function NavBar() { const theme = useTheme(); const { toggleColorMode } = useContext(ThemeContext); |