From 5a0097e377ef5f87f3b36b6974ba027f9b32d66c Mon Sep 17 00:00:00 2001 From: "Lucky Singh (Mann)" Date: Sat, 24 Jan 2026 20:08:17 +0530 Subject: [PATCH 1/2] change in the propertiese code --- config/3.0.0.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/3.0.0.json b/config/3.0.0.json index f7687fdc5dab..eaf144898237 100644 --- a/config/3.0.0.json +++ b/config/3.0.0.json @@ -12,7 +12,7 @@ "$ref": "#/definitions/specificationExtension" } }, - "properties": { + "properties": { #there the properties change i create "asyncapi": { "type": "string", "const": "3.0.0", @@ -8968,4 +8968,4 @@ } }, "description": "!!Auto generated!! \n Do not manually edit. " -} \ No newline at end of file +} From 91ea324e0ebe78155acff2509a07d44c6bb99f10 Mon Sep 17 00:00:00 2001 From: luckyxhq Date: Tue, 10 Feb 2026 13:51:47 +0530 Subject: [PATCH 2/2] fix: resolve React Hooks ESLint warnings in Filters and AnnouncementHero - Add missing setOpen dependency to useEffect in Filters.tsx - Remove unnecessary banners dependency from useMemo in AnnouncementHero.tsx - Apply prettier formatting to modified files Fixes #5125 --- components/campaigns/AnnouncementHero.tsx | 37 +++++++++++++++-------- components/dashboard/table/Filters.tsx | 2 +- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/components/campaigns/AnnouncementHero.tsx b/components/campaigns/AnnouncementHero.tsx index 19cea6690953..749a962b145f 100644 --- a/components/campaigns/AnnouncementHero.tsx +++ b/components/campaigns/AnnouncementHero.tsx @@ -18,18 +18,28 @@ interface IAnnouncementHeroProps { * @param {Boolean} props.hideVideo - Whether the video should be hidden * @description The announcement hero */ -export default function AnnouncementHero({ className = '', small = false }: IAnnouncementHeroProps) { +export default function AnnouncementHero({ + className = '', + small = false, +}: IAnnouncementHeroProps) { const [activeIndex, setActiveIndex] = useState(0); - const visibleBanners = useMemo(() => banners.filter((banner) => shouldShowBanner(banner.cfpDeadline)), [banners]); + const visibleBanners = useMemo( + () => banners.filter((banner) => shouldShowBanner(banner.cfpDeadline)), + [], + ); const numberOfVisibleBanners = visibleBanners.length; const goToPrevious = () => { - setActiveIndex((prevIndex) => (prevIndex === 0 ? numberOfVisibleBanners - 1 : prevIndex - 1)); + setActiveIndex((prevIndex) => + prevIndex === 0 ? numberOfVisibleBanners - 1 : prevIndex - 1, + ); }; const goToNext = () => { - setActiveIndex((prevIndex) => (prevIndex === numberOfVisibleBanners - 1 ? 0 : prevIndex + 1)); + setActiveIndex((prevIndex) => + prevIndex === numberOfVisibleBanners - 1 ? 0 : prevIndex + 1, + ); }; const goToIndex = (index: number) => { @@ -37,7 +47,10 @@ export default function AnnouncementHero({ className = '', small = false }: IAnn }; useEffect(() => { - const interval = setInterval(() => setActiveIndex((index) => (index + 1) % numberOfVisibleBanners), 10000); + const interval = setInterval( + () => setActiveIndex((index) => (index + 1) % numberOfVisibleBanners), + 10000, + ); return () => { clearInterval(interval); @@ -49,19 +62,19 @@ export default function AnnouncementHero({ className = '', small = false }: IAnn } return ( - -
+ +
{numberOfVisibleBanners > 1 && (
- +
)} -
-
+
+
{visibleBanners.map((banner, index) => { // Only render the active banner const isVisible = index === activeIndex; @@ -85,7 +98,7 @@ export default function AnnouncementHero({ className = '', small = false }: IAnn ); })}
-
+
{visibleBanners.map((banner, index) => (
- +
)}
diff --git a/components/dashboard/table/Filters.tsx b/components/dashboard/table/Filters.tsx index e9d8a9066c4d..5be6603adcc6 100644 --- a/components/dashboard/table/Filters.tsx +++ b/components/dashboard/table/Filters.tsx @@ -39,7 +39,7 @@ function useOutsideAlerter(ref: RefObject, setOpen: (open: boolean) => void // Unbind the event listener on clean up document.removeEventListener('mousedown', handleClickOutside); }; - }, [ref]); + }, [ref, setOpen]); } /**