From 200fd7cd9609cf4fdbc2bccdc6ecb9221a705277 Mon Sep 17 00:00:00 2001 From: eagle Date: Thu, 8 Aug 2024 20:42:28 +0530 Subject: [PATCH 1/2] chore: update direct donation description --- .../src/features/projects/ViewProject.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/grant-explorer/src/features/projects/ViewProject.tsx b/packages/grant-explorer/src/features/projects/ViewProject.tsx index e5d72bf768..c93bea435c 100644 --- a/packages/grant-explorer/src/features/projects/ViewProject.tsx +++ b/packages/grant-explorer/src/features/projects/ViewProject.tsx @@ -50,7 +50,8 @@ import { useDirectAllocation } from "./hooks/useDirectAllocation"; import { getDirectAllocationPoolId } from "common/dist/allo/backends/allo-v2"; import { Address, getAddress, zeroAddress } from "viem"; import GenericModal from "../common/GenericModal"; -import { BoltIcon, InformationCircleIcon } from "@heroicons/react/24/outline"; +import { InformationCircleIcon } from "@heroicons/react/24/outline"; +import { BoltIcon } from "@heroicons/react/24/solid"; import { useConnectModal } from "@rainbow-me/rainbowkit"; import { getBalance } from "@wagmi/core"; import { config } from "../../app/wagmi"; @@ -366,7 +367,7 @@ export default function ViewProject() { - )} +
{projectError === undefined ? ( @@ -827,6 +811,13 @@ function ProjectLogo({ logoImg }: { logoImg?: string }) { function Sidebar(props: { projectApplications?: ProjectApplicationWithRoundAndProgram[]; + directAllocationPoolId: number | undefined; + isConnected: boolean; + chainId: number; + project?: v2Project; + setShowSwitchNetworkModal: (value: boolean) => void; + setShowDirectAllocationModal: (value: boolean) => void; + openConnectModal?: () => void; }) { const activeQFRoundApplications = props.projectApplications?.filter( (projectApplication) => @@ -840,8 +831,40 @@ function Sidebar(props: {
+ {props.directAllocationPoolId && ( + + )} {activeQFRoundApplications && activeQFRoundApplications?.length > 0 && ( -

Active rounds

+ <> +

Active rounds

+

+ The project is currently participating in the below active rounds. + Donating to the project in these rounds will help it receive + matching funds. +

+ )}
{activeQFRoundApplications?.map((projectApplication) => ( @@ -1018,7 +1041,7 @@ export function ActiveRoundComponent(props: { projectMetadata: props.projectApplication.metadata.application.project, grantApplicationFormAnswers: [], status: props.projectApplication.status, - applicationIndex: 0, + applicationIndex: Number(props.projectApplication.id), roundId: props.projectApplication.roundId, chainId: props.projectApplication.chainId, amount: "0",