Fix route navigation scroll position by adding global ScrollToTop
This commit is contained in:
1 parent
54c22ca24b
commit
f31f0f3a05
2 files changed
+17
No files matched your search
@@ -8,10 +8,13 @@ import SupportPage from "./pages/SupportPage";
|
||||
import DiscoverySetPage from "./pages/DiscoverySetPage";
|
||||
import Footer from "./components/Footer";
|
||||
import SupportChatbot from "./components/SupportChatbot";
|
||||
import ScrollToTop from "./components/ScrollToTop";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<>
|
||||
<ScrollToTop />
|
||||
|
||||
<Routes>
|
||||
<Route path="/" element={<LandingPage />} />
|
||||
<Route path="/duft/:perfumeSlug" element={<ProductDetailPage />} />
|
||||
|
||||
Reference in new issue
Block a user