From 87e6830bdf03cede6450cc5c4b866a69aef5e87d Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 30 Apr 2024 00:37:23 +0800 Subject: [PATCH] disable community colections on v (#3398) --- .../src/features/discovery/LandingPage.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/grant-explorer/src/features/discovery/LandingPage.tsx b/packages/grant-explorer/src/features/discovery/LandingPage.tsx index 6439f30411..396c658ead 100644 --- a/packages/grant-explorer/src/features/discovery/LandingPage.tsx +++ b/packages/grant-explorer/src/features/discovery/LandingPage.tsx @@ -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( @@ -45,11 +46,13 @@ const LandingPage = () => { - - {collections.data !== undefined && ( - - )} - + {getAlloVersion() === "allo-v2" && ( + + {collections.data !== undefined && ( + + )} + + )}