From dca20b768af8adcc7e42d6ebed4d1f989442f74c Mon Sep 17 00:00:00 2001 From: Anant Jain <75206987+anantJjain@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:59:53 +0530 Subject: [PATCH] feat: add "No result found" to all searches (#126) --- components/Funders.jsx | 20 ++++++++++++++++++++ components/Partners.jsx | 25 +++++++++++++++++++++++-- components/Solutions.jsx | 25 +++++++++++++++++++++++-- 3 files changed, 66 insertions(+), 4 deletions(-) diff --git a/components/Funders.jsx b/components/Funders.jsx index ba4499a..b8c5063 100644 --- a/components/Funders.jsx +++ b/components/Funders.jsx @@ -37,7 +37,27 @@ function Partners({ funders }) { return date.toLocaleDateString('en-GB', options); }; + const resetFilters = () => { + setFilteredFunders(funders); + setQuery(''); + }; + const renderFunders = () => { + if (filteredFunders.length === 0) { + return ( +