Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/campaigns/AnnouncementHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface 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 = () => {
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/table/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function useOutsideAlerter(ref: RefObject<any>, setOpen: (open: boolean) => void
// Unbind the event listener on clean up
document.removeEventListener('mousedown', handleClickOutside);
};
}, [ref]);
}, [setOpen, ref]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion components/navigation/DocsNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function DocsNav({ item, active, onClick = () => {} }: DocsNavPro

useEffect(() => {
setOpenSubCategory(active.startsWith(item.item.slug));
}, [active]);
}, [active, item.item.slug]);

return (
<li className='mb-4' key={item.item.title} data-testid='DocsNav-item'>
Expand Down
2 changes: 1 addition & 1 deletion components/tools/ToolsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function ToolsCard({ toolData }: ToolsCardProp) {
if (descriptionRef.current) {
setIsTruncated(descriptionRef.current?.scrollHeight! > descriptionRef.current?.clientHeight!);
}
}, [descriptionRef.current]);
}, []);

let onGit = false;

Expand Down
2 changes: 1 addition & 1 deletion components/tools/ToolsDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default function ToolsDashboard() {
document.documentElement.style.scrollPaddingTop = '0';
}
}
}, []);
}, [toolsList]);
// Function to update the list of tools according to the current filters applied
const clearFilters = () => {
setOpenFilter(false);
Expand Down
Loading