From db081d97e2eae54035e03d6a75396fac44db742b Mon Sep 17 00:00:00 2001 From: jaxcoder / Date: Wed, 24 Apr 2024 07:56:46 -0400 Subject: [PATCH] WIP/3297 Add Explore Projects Tab (#3328) * fix * update tabs based on collections pr * fix conflict errors * show search input/not working very well for results * Update packages/grant-explorer/src/features/contributors/ViewContributionHistory.tsx --------- Co-authored-by: 0xKurt Co-authored-by: Aditya Anand M C --- .../src/features/discovery/ExploreProjectsPage.tsx | 2 +- .../src/features/discovery/LandingTabs.tsx | 9 ++++----- .../src/features/round/CollectionShareDialog.tsx | 2 +- packages/grant-explorer/src/index.tsx | 1 + 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx b/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx index 5d092fee6c..8e80b683d4 100644 --- a/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx +++ b/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx @@ -200,7 +200,7 @@ export function ExploreProjectsPage(): JSX.Element { : `${pageTitle} (${totalApplicationsCount})` } action={ - !collection && ( + collection && (
{ setState({ ...state, applications: [...props.applications] }); - }, [props.applications]); + }, [props.applications, state]); return ( <> diff --git a/packages/grant-explorer/src/index.tsx b/packages/grant-explorer/src/index.tsx index 50a5b08864..7bc4856e5a 100644 --- a/packages/grant-explorer/src/index.tsx +++ b/packages/grant-explorer/src/index.tsx @@ -90,6 +90,7 @@ root.render( } /> } /> + } /> {/* Round Routes */}