From 838f2c7f5790c10779cfd32944c52f75713a4a05 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 25 Jan 2024 16:05:26 +0700
Subject: Add scroll to top component

---
 src/pages/_app.jsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/pages/_app.jsx')

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
-- 
cgit v1.2.3


From e35595250f9e0408e23d1da3ac30ac1179e2a376 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sat, 27 Jan 2024 11:46:36 +0700
Subject: Refactor layout

---
 src/pages/_app.jsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/pages/_app.jsx')

diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx
index e2190fda..01dec611 100644
--- a/src/pages/_app.jsx
+++ b/src/pages/_app.jsx
@@ -1,5 +1,6 @@
 import '@/fonts/Inter/inter.css';
 import '@/styles/globals.css';
+import '@/styles/normalize.css';
 // import 'react-loading-skeleton/dist/skeleton.css';
 
 import { useEffect, useState } from 'react';
-- 
cgit v1.2.3

