From 184fbd515d6b6b444f204b9482b4bc674f979df4 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Thu, 15 Feb 2024 16:09:26 +0100 Subject: [PATCH] ad temporary message to create program --- .../features/program/CreateProgramPage.tsx | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/packages/round-manager/src/features/program/CreateProgramPage.tsx b/packages/round-manager/src/features/program/CreateProgramPage.tsx index 96318d512f..ef961f7db1 100644 --- a/packages/round-manager/src/features/program/CreateProgramPage.tsx +++ b/packages/round-manager/src/features/program/CreateProgramPage.tsx @@ -20,6 +20,7 @@ import { useCreateProgram } from "../../context/program/CreateProgramContext"; import ReactTooltip from "react-tooltip"; import { CHAINS } from "../api/utils"; import { ChainId } from "common/src/chain-ids"; +import { getConfig } from "common/src/config"; type FormData = { name: string; @@ -156,19 +157,23 @@ export default function CreateProgram() { ); } - return ( -
- -
- Creating Allo V2 programs in Manager is not yet supported, as a - temporary solution please head over to   - - Builder - {" "} - to create a project on Allo V2 and come back here. + const config = getConfig(); + + if (config.allo.version === "allo-v2") { + return ( +
+ +
+ Creating Allo V2 programs in Manager is not yet supported, as a + temporary solution please head over to   + + Builder + {" "} + to create a project on Allo V2 and come back here. +
-
- ); + ); + } return (