From a1cdb7b6c5f2a9b8c24b84e01dd1e58a92112c2e Mon Sep 17 00:00:00 2001 From: thulieblack Date: Tue, 21 Nov 2023 18:10:13 +0200 Subject: [PATCH 1/3] update-link --- components/campaigns/AnnoucementHero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/campaigns/AnnoucementHero.js b/components/campaigns/AnnoucementHero.js index cb31fd494cac..11e601afa5fc 100644 --- a/components/campaigns/AnnoucementHero.js +++ b/components/campaigns/AnnoucementHero.js @@ -71,7 +71,7 @@ export default function AnnouncementHero({ className = '', small = false, hideVi cfaText: "Grab Free Tickets", eventName: "AACoT'23 Bengaluru Edition", cfpDeadline: cfpDeadlineIndia, - link: "https://opencollective.com/asyncapi/events/asyncapi-conference-on-tour-6b3c0aa1/contribute/aacot-london-edition-66187", + link: "https://conference.asyncapi.com/venue/bangalore", show: showBannerIndia }, { From 5f91afa67aba506044fc87eecb1c95bcb1aa1c0f Mon Sep 17 00:00:00 2001 From: akshatnema Date: Tue, 21 Nov 2023 22:30:48 +0530 Subject: [PATCH 2/3] add z-index to Banner --- components/campaigns/AnnoucementHero.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/campaigns/AnnoucementHero.js b/components/campaigns/AnnoucementHero.js index 11e601afa5fc..1d69ea793949 100644 --- a/components/campaigns/AnnoucementHero.js +++ b/components/campaigns/AnnoucementHero.js @@ -33,7 +33,7 @@ export default function AnnouncementHero({ className = '', small = false, hideVi return (
{ - const interval = setInterval(() => setActiveIndex(index => index + 1), 5000); - return () => { - clearInterval(interval); - }; - }, [activeIndex]); + // useEffect(() => { + // const interval = setInterval(() => setActiveIndex(index => index + 1), 5000); + // return () => { + // clearInterval(interval); + // }; + // }, [activeIndex]); return ( From be7f1b5783816b07e1d700bd66af98495e04f18b Mon Sep 17 00:00:00 2001 From: akshatnema Date: Tue, 21 Nov 2023 23:25:31 +0530 Subject: [PATCH 3/3] removed comment --- components/campaigns/AnnoucementHero.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/campaigns/AnnoucementHero.js b/components/campaigns/AnnoucementHero.js index 1d69ea793949..94d673209961 100644 --- a/components/campaigns/AnnoucementHero.js +++ b/components/campaigns/AnnoucementHero.js @@ -102,12 +102,12 @@ export default function AnnouncementHero({ className = '', small = false, hideVi setActiveIndex(index); }; - // useEffect(() => { - // const interval = setInterval(() => setActiveIndex(index => index + 1), 5000); - // return () => { - // clearInterval(interval); - // }; - // }, [activeIndex]); + useEffect(() => { + const interval = setInterval(() => setActiveIndex(index => index + 1), 5000); + return () => { + clearInterval(interval); + }; + }, [activeIndex]); return (