fix: fixing modal time

This commit is contained in:
Sabda Yagra 2025-07-28 08:24:13 +07:00
parent 373063e23a
commit 76f529a5c9
1 changed files with 2 additions and 2 deletions

View File

@ -346,12 +346,12 @@ const HeroNew = (props: { group?: string }) => {
initFetch(); initFetch();
}, []); }, []);
// Show hero modal after 20 seconds when website is fully loaded // Show hero modal after 5 seconds when website is fully loaded
useEffect(() => { useEffect(() => {
const timer = setTimeout(() => { const timer = setTimeout(() => {
console.log("Show modal popup"); console.log("Show modal popup");
setShowModal(true); setShowModal(true);
}, 30000); // 30 seconds }, 5000);
return () => clearTimeout(timer); return () => clearTimeout(timer);
}, []); }, []);