11import { useNavigate } from "react-router-dom" ;
22import { useEffect , useState } from "react" ;
3- import { MdDarkMode , MdLightMode } from "react-icons/md" ;
3+ // import { MdDarkMode, MdLightMode } from "react-icons/md";
44import { FaGithub } from "react-icons/fa6" ;
5- import useTheme from "@hooks/useTheme.ts" ;
5+ // import useTheme from "@hooks/useTheme.ts";
66import useAuth from "@/hooks/useAuth" ;
77import {
88 authenticatedRoutes ,
@@ -15,7 +15,7 @@ const Sidebar = () => {
1515 const { isLoggedIn, logOut } = useAuth ( ) ;
1616 const [ selected , setSelected ] = useState < string > ( "" ) ;
1717 const [ currentRoutes , setCurrentRoutes ] = useState < Route [ ] > ( [ ] ) ;
18- const { theme, toggleTheme } = useTheme ( ) ;
18+ // const { theme, toggleTheme } = useTheme();
1919 const navigate = useNavigate ( ) ;
2020
2121 useEffect ( ( ) => {
@@ -86,16 +86,16 @@ const Sidebar = () => {
8686 < FaGithub /> BOOSKIT
8787 </ span >
8888 </ a >
89- < button
90- onClick = { toggleTheme }
91- className = {
92- "text-xl dark:bg-gray-100 dark:text-gray-black border border-gray-200 rounded-full p-2 dark:border-gray-200 hover:bg-gray-200/80 dark:hover:bg-gray-200/80 transition-colors"
93- }
94- aria-roledescription = { "라이트모드와 다크모드 간 전환 버튼" }
95- aria-label = { "테마 변경버튼" }
96- >
97- { theme === "light" ? < MdLightMode /> : < MdDarkMode /> }
98- </ button >
89+ { /* <button*/ }
90+ { /* onClick={toggleTheme}*/ }
91+ { /* className={*/ }
92+ { /* "text-xl dark:bg-gray-100 dark:text-gray-black border border-gray-200 rounded-full p-2 dark:border-gray-200 hover:bg-gray-200/80 dark:hover:bg-gray-200/80 transition-colors"*/ }
93+ { /* }*/ }
94+ { /* aria-roledescription={"라이트모드와 다크모드 간 전환 버튼"}*/ }
95+ { /* aria-label={"테마 변경버튼"}*/ }
96+ { /*>*/ }
97+ { /* {theme === "light" ? <MdLightMode /> : <MdDarkMode />}*/ }
98+ { /* </button>*/ }
9999 </ div >
100100 </ nav >
101101 ) ;
0 commit comments