From c2399f738404ebdbe8613d700b2c525a1babea7b Mon Sep 17 00:00:00 2001 From: Jaxcoder Date: Mon, 10 Jun 2024 15:35:10 -0400 Subject: [PATCH] add create program button --- .../src/features/common/Navbar.tsx | 2 +- .../src/features/program/ListProgramPage.tsx | 38 ++++++++++++------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/packages/round-manager/src/features/common/Navbar.tsx b/packages/round-manager/src/features/common/Navbar.tsx index 9c9d49082..bf758b453 100644 --- a/packages/round-manager/src/features/common/Navbar.tsx +++ b/packages/round-manager/src/features/common/Navbar.tsx @@ -35,7 +35,7 @@ export default function Navbar({ programCta: programCta = true }: NavbarProps) { className="inline-flex w-full items-center gap-x-1.5 bg-transparent px-3 py-2 text-mono text-sm text-gray-500" data-testid="program-cta" > - + Dashboard )} diff --git a/packages/round-manager/src/features/program/ListProgramPage.tsx b/packages/round-manager/src/features/program/ListProgramPage.tsx index 9ab8a9065..722492132 100644 --- a/packages/round-manager/src/features/program/ListProgramPage.tsx +++ b/packages/round-manager/src/features/program/ListProgramPage.tsx @@ -5,6 +5,7 @@ import { ArrowNarrowRightIcon, CalendarIcon, ChevronUpIcon, + PlusIcon, UserGroupIcon, } from "@heroicons/react/solid"; import { Spinner } from "../common/Spinner"; @@ -28,6 +29,7 @@ import { allChains } from "../../app/wagmi"; import { useRoundsByAddress } from "../../context/round/RoundContext"; import { useAccount } from "wagmi"; import { getChainById, stringToBlobUrl } from "common"; +import { Button } from "common/src/styles"; interface ProgramCardProps { title: string; @@ -236,18 +238,28 @@ function ListPrograms() { )}
-
- - Programs - - { - setViewAllPrograms(!viewAllPrograms); - }} - > - {viewAllPrograms ? "View less" : "View all"} - +
+
+ + Programs + + { + setViewAllPrograms(!viewAllPrograms); + }} + > + {viewAllPrograms ? "View less" : "View all"} + +
+
+ + + + Create Program + + +
@@ -273,7 +285,7 @@ function ListPrograms() { {viewAllRounds ? "View less" : "View all"}
-
+
Sort by Recent