Skip to content

Commit

Permalink
disable community colections on v (gitcoinco#3398)
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra authored and debuggingfuture committed May 19, 2024
1 parent f2d9ec6 commit 87e6830
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/grant-explorer/src/features/discovery/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { LandingSection, ViewAllLink } from "./LandingSection";
import { toQueryString } from "./RoundsFilter";
import { useCollections } from "../collections/hooks/useCollections";
import { CollectionsGrid } from "../collections/CollectionsGrid";
import { getAlloVersion } from "common/src/config";

const LandingPage = () => {
const activeRounds = useFilterRounds(
Expand Down Expand Up @@ -45,11 +46,13 @@ const LandingPage = () => {
<GradientLayout showWalletInteraction showAlloVersionBanner={false}>
<LandingHero />

<LandingSection title="Community collections">
{collections.data !== undefined && (
<CollectionsGrid data={collections.data} />
)}
</LandingSection>
{getAlloVersion() === "allo-v2" && (
<LandingSection title="Community collections">
{collections.data !== undefined && (
<CollectionsGrid data={collections.data} />
)}
</LandingSection>
)}

<LandingSection
title="Donate now"
Expand Down

0 comments on commit 87e6830

Please sign in to comment.