From 31bdab8ab6807d99c4edb7faf5d6b7ebf2344112 Mon Sep 17 00:00:00 2001 From: simonreddy2001 Date: Tue, 21 Dec 2021 11:58:55 +0100 Subject: [PATCH 1/4] scroll to top fixed --- src/client/App.js | 85 ++++++++++++++++++++------------------- src/client/ScrollToTop.js | 13 ++++++ 2 files changed, 57 insertions(+), 41 deletions(-) create mode 100644 src/client/ScrollToTop.js diff --git a/src/client/App.js b/src/client/App.js index ce3e0232..69150560 100644 --- a/src/client/App.js +++ b/src/client/App.js @@ -18,6 +18,7 @@ import MonthlyArrivalsPageContainer from './containers/MonthlyArrivalsPage/Month import AboutpageContainer from './containers/AboutPage/AboutPage.Container'; import ContactpageContainer from './containers/ContactPage/ContactPage.Container'; import CartPageContainer from './containers/CartPage/CartPage.Container'; +import ScrollToTop from './ScrollToTop'; function App() { const { isLoading, isAuthenticated } = useFirebase(); @@ -29,50 +30,52 @@ function App() { return ( - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - {/* All routes below are authenticated routes - a user must login first */} - - - - - - - - - + {/* All routes below are authenticated routes - a user must login first */} + + + + + + + + + - {/* Favorites page */} - - - + {/* Favorites page */} + + + - {/* Make sure to keep wildcard "*" routes in the bottom of the Switch */} - - - - + {/* Make sure to keep wildcard "*" routes in the bottom of the Switch */} + + + + +