diff --git a/packages/grant-explorer/src/features/projects/ViewProject.tsx b/packages/grant-explorer/src/features/projects/ViewProject.tsx index e5d72bf768..3ba5496693 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"; @@ -361,32 +362,16 @@ export default function ViewProject() {
- - {directAllocationPoolId && ( - - )} +
{projectError === undefined ? ( @@ -573,9 +558,14 @@ export function DirectDonationModalComponent(props: { return ( <>
-

+

- Donate now + Direct Donation +

+

+ This is a direct donation to the project. Please note that as the + donation is outside of a quadratic funding round it doesn't receive + any matching funds.

@@ -821,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) => @@ -834,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) => ( @@ -1012,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",