diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-25 16:05:26 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-25 16:05:26 +0700 |
| commit | 838f2c7f5790c10779cfd32944c52f75713a4a05 (patch) | |
| tree | 6f24c7e36ca86adb37e3524c32e986bbe7b820d0 /src/pages/_app.jsx | |
| parent | fb3be45e5246e588628723b3d4c0f901c8b260a2 (diff) | |
Add scroll to top component
Diffstat (limited to 'src/pages/_app.jsx')
| -rw-r--r-- | src/pages/_app.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx index 9067fd03..e2190fda 100644 --- a/src/pages/_app.jsx +++ b/src/pages/_app.jsx @@ -35,6 +35,9 @@ const LogoSpinner = dynamic( () => import('@/core/components/elements/Spinner/LogoSpinner'), { ssr: false } ); +const ScrollToTop = dynamic(() => import('@/core/components/ScrollToTop'), { + ssr: false, +}); const Toaster = dynamic( () => import('react-hot-toast').then((mod) => mod.Toaster), { ssr: false } @@ -80,6 +83,8 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }) { return ( <SessionProvider session={session}> + <ScrollToTop /> + <AnimatePresence> {animateLoader && ( <motion.div |
