From d3c2de340b07c3666a3b0383cc2ae9063a660b93 Mon Sep 17 00:00:00 2001 From: Crisgarner <@crisgarner> Date: Tue, 5 Nov 2024 14:23:39 -0600 Subject: [PATCH] removed multiround --- .../interface/src/components/JoinButton.tsx | 16 ++++++++--- packages/interface/src/pages/index.tsx | 27 ++++++++++--------- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/packages/interface/src/components/JoinButton.tsx b/packages/interface/src/components/JoinButton.tsx index c07542f2..4384834e 100644 --- a/packages/interface/src/components/JoinButton.tsx +++ b/packages/interface/src/components/JoinButton.tsx @@ -58,7 +58,11 @@ export const JoinButton = (): JSX.Element => { if (!isEligibleToVote && gatekeeperTrait === GatekeeperTrait.Zupass) { return (
-
@@ -68,7 +72,11 @@ export const JoinButton = (): JSX.Element => { if (isEligibleToVote && !isRegistered) { return (
-
@@ -78,7 +86,9 @@ export const JoinButton = (): JSX.Element => { if (!isEligibleToVote) { return (
- +
); } diff --git a/packages/interface/src/pages/index.tsx b/packages/interface/src/pages/index.tsx index 29287af3..540e7c94 100644 --- a/packages/interface/src/pages/index.tsx +++ b/packages/interface/src/pages/index.tsx @@ -1,3 +1,5 @@ +import clsx from "clsx"; +import Image from "next/image"; import { useAccount } from "wagmi"; import { JoinButton } from "~/components/JoinButton"; @@ -7,7 +9,6 @@ import { config } from "~/config"; import { useMaci } from "~/contexts/Maci"; import { useRound } from "~/contexts/Round"; import { FAQList } from "~/features/home/components/FaqList"; -import { RoundsList } from "~/features/rounds/components/RoundsList"; import { useIsAdmin } from "~/hooks/useIsAdmin"; import { Layout } from "~/layouts/DefaultLayout"; @@ -32,21 +33,23 @@ const HomePage = (): JSX.Element => { {isConnected && !isRegistered && } - {isConnected && isAdmin && ( -
-

Configure and deploy your contracts to get started.

- - -
- )} - {isConnected && !isAdmin && rounds && rounds.length === 0 && (

There are no rounds deployed.

)} - {rounds && rounds.length > 0 && } + {isConnected && isRegistered && ( + + )} + +