Scroll to top during navigation changes

This commit is contained in:
Alex Gleason committed 2025-06-01 07:32:33 -05:00
1 parent 98f3305aa1
commit ee42c84171
3 files changed
+20

No files matched your search

+2
View File
@@ -2,10 +2,12 @@ import { BrowserRouter, Route, Routes } from "react-router-dom";
import Index from "./pages/Index";
import NotFound from "./pages/NotFound";
import { ScrollToTop } from "./components/ScrollToTop";
export function AppRouter() {
return (
<BrowserRouter>
<ScrollToTop />
<Routes>
<Route path="/" element={<Index />} />
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}