diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-28 13:17:36 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-28 13:17:36 +0700 |
| commit | 86d124a1c95a5e7c3367fd288303c9c9a07ca1fd (patch) | |
| tree | 513c8950d9ed31dc015bcb6fc4f499c9196f540e | |
| parent | b5e19d709d27615f30466ee59014d372dac2335c (diff) | |
Add close on click popup information
| -rw-r--r-- | src-migrate/modules/popup-information/index.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
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> |
