()
| 13 | import SoundBar from "./subComponents/SoundBar"; |
| 14 | |
| 15 | function App() { |
| 16 | const location = useLocation(); |
| 17 | return ( |
| 18 | <> |
| 19 | <GlobalStyle /> |
| 20 | |
| 21 | <ThemeProvider theme={lightTheme}> |
| 22 | <SoundBar /> |
| 23 | |
| 24 | <AnimatePresence mode="wait"> |
| 25 | <Routes key={location.pathname} location={location}> |
| 26 | <Route path="/" element={<Main />} /> |
| 27 | <Route path="/about" element={<AboutPage />} /> |
| 28 | <Route path="/blog" element={<BlogPage />} /> |
| 29 | <Route path="/work" element={<WorkPage />} /> |
| 30 | <Route path="/skills" element={<MySkillsPage />} /> |
| 31 | {/* Catch-all: send unknown routes to Main */} |
| 32 | <Route path="*" element={<Main />} /> |
| 33 | </Routes> |
| 34 | </AnimatePresence> |
| 35 | </ThemeProvider> |
| 36 | </> |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | export default App; |
nothing calls this directly
no outgoing calls
no test coverage detected