feat(notes-pyqs): implement dynamic notes scanning, subject dropdown, and redesign UI

This commit is contained in:
Amudieshwar A G
2026-07-23 11:01:53 +05:30
parent 0209657182
commit 05bf810bc1
92 changed files with 26468 additions and 137 deletions

View File

@@ -1,4 +1,5 @@
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { useEffect } from 'react';
import { BrowserRouter, Routes, Route, useLocation } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import MainLayout from '@/layouts/MainLayout';
import Home from '@/pages/Home/Home';
@@ -18,10 +19,21 @@ const queryClient = new QueryClient({
},
});
function ScrollToTop() {
const { pathname } = useLocation();
useEffect(() => {
window.scrollTo(0, 0);
}, [pathname]);
return null;
}
function App() {
return (
<QueryClientProvider client={queryClient}>
<BrowserRouter>
<ScrollToTop />
<Routes>
<Route element={<MainLayout />}>
<Route path="/" element={<Home />} />