diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e9525e7a..79429c00 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -25,120 +25,125 @@ import LeaderBoard from "./pages/LeaderBoard"; import CustomizeWithAi from "./pages/CustomizeWithAi"; import ScrollToTopWhenRouteChanges from "./components/ScrollToTopWhenRouteChanges"; import './i18n'; -import CodeEditor from "./pages/CodeEditor"; import ShowProfile from "./pages/ShowProfile"; import { Tooltip } from 'react-tooltip' import EditPost from "./pages/EditPost"; +import useTheme from './hooks/useTheme'; +import CodeEditor from "./pages/CodeEditor"; // import axios from "axios"; // axios.defaults.baseURL = "http://localhost:3001/"; -function App() { +function App() { + const { theme, toggleTheme } = useTheme(); return ( }> - + - -
- - } /> - } /> - } /> - } /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - } - /> - - - - } - /> - - } - /> - - } - /> - - } - /> - } /> - +
+ + +
+ + } /> + } /> + } /> + } /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + } + /> + + + + } + /> + + } + /> + + } + /> + + } + /> + } /> + +
+
-