diff --git a/packages/common/src/styles.ts b/packages/common/src/styles.ts index dbf7bad054..aee3d51c1d 100644 --- a/packages/common/src/styles.ts +++ b/packages/common/src/styles.ts @@ -25,7 +25,7 @@ export const Button = tw.button` } else if (p.$variant === "external-link") { return "bg-white text-gitcoin-violet-500"; } else { - return "bg-violet-400 text-white"; + return "bg-blue-100 text-gray-500"; } }} ${(p: ButtonProps) => (p.$hidden ? "hidden" : "")} diff --git a/packages/round-manager/src/context/program/ReadProgramContext.tsx b/packages/round-manager/src/context/program/ReadProgramContext.tsx index eada517e20..1b5ceba161 100644 --- a/packages/round-manager/src/context/program/ReadProgramContext.tsx +++ b/packages/round-manager/src/context/program/ReadProgramContext.tsx @@ -200,7 +200,7 @@ export const useProgramById = ( ); } } - }, [id, walletProvider]); // eslint-disable-line react-hooks/exhaustive-deps + }, [address, context.dispatch, context.state.programs, dataLayer, id, walletProvider]); const program = context.state.programs.find((program) => program.id === id); diff --git a/packages/round-manager/src/features/program/ProgramListPage.tsx b/packages/round-manager/src/features/program/ProgramListPage.tsx index 43940205af..2fb79b099c 100644 --- a/packages/round-manager/src/features/program/ProgramListPage.tsx +++ b/packages/round-manager/src/features/program/ProgramListPage.tsx @@ -44,6 +44,8 @@ function ListPrograms() { return !programs || programs.length === 0; } + console.log("programs", programs); + const ProgramList = programs.map((program, key) => ( +
+ {program.tags?.includes("allo-v1") && ( + + v1 + {/* todo: add the icon */} + + )} +
View details{" "} diff --git a/packages/round-manager/src/features/program/ViewProgramPage.tsx b/packages/round-manager/src/features/program/ViewProgramPage.tsx index 6ecd90087d..c09d8281da 100644 --- a/packages/round-manager/src/features/program/ViewProgramPage.tsx +++ b/packages/round-manager/src/features/program/ViewProgramPage.tsx @@ -262,7 +262,7 @@ export default function ViewProgram() { onClick={() => setGrantType("quadraticFunding")} className={`flex w-full mb-4 rounded border ${ grantType === "quadraticFunding" - ? "border-violet-400 shadow-lg" + ? "border-yellow-100 shadow-lg" : "border-grey-100" } bg-white p-6 cursor-pointer`} > @@ -270,7 +270,7 @@ export default function ViewProgram() {
setGrantType("directGrant")} className={`flex w-full rounded border ${ grantType === "directGrant" - ? "border-violet-400 shadow-lg" + ? "border-green-200 shadow-lg" : "border-grey-100" } bg-white p-6 cursor-pointer`} > @@ -308,7 +308,7 @@ export default function ViewProgram() {
-
+
-

- My Programs -

+

Home

-

{programToRender?.metadata?.name || "Program Details"} @@ -408,21 +401,21 @@ export default function ViewProgram() { {isRoundsFetched && roundItems.length > 0 && (
-
+

My Rounds

{programToRender?.tags?.includes(getAlloVersion()) && ( { setIsModalOpen(true); }} - className="text-violet-400 font-thin ml-auto mr-4 cursor-pointer" + className="border border-transparent p-2 rounded-lg text-sm text-gray-500 font-mono ml-auto mr-4 bg-yellow-100 cursor-pointer" data-testid="create-round-small-link" > )}
diff --git a/packages/round-manager/src/features/round/RoundListPage.tsx b/packages/round-manager/src/features/round/RoundListPage.tsx index a0cb32e5ab..8d840d49bf 100644 --- a/packages/round-manager/src/features/round/RoundListPage.tsx +++ b/packages/round-manager/src/features/round/RoundListPage.tsx @@ -31,6 +31,8 @@ function ListRounds() { ); const [viewAllRounds, setViewAllRounds] = React.useState(false); + console.log("rounds", rounds); + function hasNoRounds() { return !rounds || rounds.length === 0; }