Skip to content

Commit

Permalink
WIP/3297 Add Explore Projects Tab (#3328)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Aditya Anand M C <[email protected]>
  • Loading branch information
3 people authored Apr 24, 2024
1 parent 6f48f89 commit db081d9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export function ExploreProjectsPage(): JSX.Element {
: `${pageTitle} (${totalApplicationsCount})`
}
action={
!collection && (
collection && (
<div className="font-mono flex gap-x-4">
<form
className="relative"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ export default function LandingTabs() {
tabName: "home-rounds-tab",
},
{
to: "/",
activeRegExp: /^\/collections/,
children: "Collections",
tabName: "home-collections-tab",
showRegExp: /^\/collections/,
to: "/projects",
activeRegExp: /^\/projects/,
children: isDesktop ? "Explore projects" : "Projects",
tabName: "home-projects-tab",
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function CollectionShareDialog(props: Props) {

useEffect(() => {
setState({ ...state, applications: [...props.applications] });
}, [props.applications]);
}, [props.applications, state]);

return (
<>
Expand Down
1 change: 1 addition & 0 deletions packages/grant-explorer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ root.render(
<Route path="/" element={<LandingPage />} />

<Route path="/rounds" element={<ExploreRoundsPage />} />
<Route path="/projects" element={<ExploreProjectsPage />} />

{/* Round Routes */}
<Route
Expand Down

0 comments on commit db081d9

Please sign in to comment.