From b5e19d709d27615f30466ee59014d372dac2335c Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 28 Feb 2024 11:24:19 +0700
Subject: Update popup information module

---
 src-migrate/modules/popup-information/index.tsx | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

(limited to 'src-migrate/modules/popup-information/index.tsx')

diff --git a/src-migrate/modules/popup-information/index.tsx b/src-migrate/modules/popup-information/index.tsx
index 3d537236..dd6da458 100644
--- a/src-migrate/modules/popup-information/index.tsx
+++ b/src-migrate/modules/popup-information/index.tsx
@@ -1,9 +1,9 @@
 import { useRouter } from 'next/router';
 import { useEffect, useState } from 'react';
-import { Modal } from "~/components/ui/modal"
+
+import { Modal } from "~/components/ui/modal";
 import { getAuth } from '~/libs/auth';
 import PageContent from '../page-content';
-import Link from 'next/link';
 
 const PagePopupInformation = () => {
   const router = useRouter();
@@ -25,12 +25,7 @@ const PagePopupInformation = () => {
         mode='desktop'
       >
         <div className='w-[350px] md:w-[530px] '>
-          <Link href={'/register'}>
-            <PageContent path='/onbording-popup' />
-          </Link>
-          {/* <Link href={'/register'} className='btn-yellow w-full mt-2'>
-            Daftar Sekarang
-          </Link> */}
+          <PageContent path='/onbording-popup' />
         </div>
       </Modal>
     </div>
-- 
cgit v1.2.3


From 86d124a1c95a5e7c3367fd288303c9c9a07ca1fd Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 28 Feb 2024 13:17:36 +0700
Subject: Add close on click popup information

---
 src-migrate/modules/popup-information/index.tsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'src-migrate/modules/popup-information/index.tsx')

diff --git a/src-migrate/modules/popup-information/index.tsx b/src-migrate/modules/popup-information/index.tsx
index dd6da458..0d36f8e9 100644
--- a/src-migrate/modules/popup-information/index.tsx
+++ b/src-migrate/modules/popup-information/index.tsx
@@ -12,9 +12,7 @@ const PagePopupInformation = () => {
   const [active, setActive] = useState<boolean>(false);
 
   useEffect(() => {
-    if (isHomePage && !auth) {
-      setActive(true);
-    }
+    if (isHomePage && !auth) setActive(true);
   }, [isHomePage, auth]);
   return (
     <div className='group'>
@@ -24,7 +22,7 @@ const PagePopupInformation = () => {
         close={() => setActive(false)}
         mode='desktop'
       >
-        <div className='w-[350px] md:w-[530px] '>
+        <div className='w-[350px] md:w-[530px]' onClick={() => setActive(false)}>
           <PageContent path='/onbording-popup' />
         </div>
       </Modal>
-- 
cgit v1.2.3

