fix: fixing modal time
This commit is contained in:
parent
373063e23a
commit
76f529a5c9
|
|
@ -346,12 +346,12 @@ const HeroNew = (props: { group?: string }) => {
|
|||
initFetch();
|
||||
}, []);
|
||||
|
||||
// Show hero modal after 20 seconds when website is fully loaded
|
||||
// Show hero modal after 5 seconds when website is fully loaded
|
||||
useEffect(() => {
|
||||
const timer = setTimeout(() => {
|
||||
console.log("Show modal popup");
|
||||
setShowModal(true);
|
||||
}, 30000); // 30 seconds
|
||||
}, 5000);
|
||||
|
||||
return () => clearTimeout(timer);
|
||||
}, []);
|
||||
|
|
|
|||
Loading…
Reference in New Issue