Skip to content

Commit

Permalink
ad temporary message to create program
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra committed Feb 15, 2024
1 parent 1fc6d5c commit 184fbd5
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions packages/round-manager/src/features/program/CreateProgramPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -156,19 +157,23 @@ export default function CreateProgram() {
);
}

return (
<div className="bg-[#F3F3F5]">
<Navbar />
<div className="container mx-auto h-screen px-4 py-16">
Creating Allo V2 programs in Manager is not yet supported, as a
temporary solution please head over to &nbsp;
<a className="underline" href="https://builder.gitcoin.co">
Builder
</a>{" "}
to create a project on Allo V2 and come back here.
const config = getConfig();

if (config.allo.version === "allo-v2") {
return (
<div className="bg-[#F3F3F5]">
<Navbar />
<div className="container mx-auto h-screen px-4 py-16">
Creating Allo V2 programs in Manager is not yet supported, as a
temporary solution please head over to &nbsp;
<a className="underline" href="https://builder.gitcoin.co">
Builder
</a>{" "}
to create a project on Allo V2 and come back here.
</div>
</div>
</div>
);
);
}

return (
<div className="bg-[#F3F3F5]">
Expand Down

0 comments on commit 184fbd5

Please sign in to comment.