fix: fixing modal time
This commit is contained in:
parent
373063e23a
commit
76f529a5c9
|
|
@ -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);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue