diff --git a/src/components/Navbars/components/MobileDrawer/MobileDrawer.js b/src/components/Navbars/components/MobileDrawer/MobileDrawer.js index 590c3f1f..8084d394 100644 --- a/src/components/Navbars/components/MobileDrawer/MobileDrawer.js +++ b/src/components/Navbars/components/MobileDrawer/MobileDrawer.js @@ -18,10 +18,8 @@ import { Link, Divider, Avatar, - useColorMode, useColorModeValue } from '@chakra-ui/react'; -import { SunIcon, MoonIcon } from '@chakra-ui/icons'; import { useNavigate, useLocation } from 'react-router-dom'; /** @@ -46,7 +44,6 @@ const MobileDrawer = memo(({ }) => { const navigate = useNavigate(); const location = useLocation(); - const { colorMode, toggleColorMode } = useColorMode(); const userBgColor = useColorModeValue('gray.50', 'whiteAlpha.100'); const contactTextColor = useColorModeValue('gray.500', 'gray.300'); const emailTextColor = useColorModeValue('gray.500', 'gray.300'); @@ -82,17 +79,6 @@ const MobileDrawer = memo(({ - {/* 移动端:日夜模式切换 */} - - {/* 移动端用户信息 */} {isAuthenticated && user && ( <>