diff --git a/src/graphql/queries/project.ts b/src/graphql/queries/project.ts index f4ad42e00..500ff9b61 100644 --- a/src/graphql/queries/project.ts +++ b/src/graphql/queries/project.ts @@ -175,6 +175,7 @@ export const QUERY_PROJECT_DASHBOARD_FUNDERS = gql` fundingTxs { email paidAt + amount uuid } rewards { diff --git a/src/pages/projectDashboard/sections/ProjectContributors.tsx b/src/pages/projectDashboard/sections/ProjectContributors.tsx index 7bef65e00..ebce51ff6 100644 --- a/src/pages/projectDashboard/sections/ProjectContributors.tsx +++ b/src/pages/projectDashboard/sections/ProjectContributors.tsx @@ -10,6 +10,7 @@ import { Text, Th, Thead, + Tooltip, Tr, VStack, } from '@chakra-ui/react' @@ -147,11 +148,23 @@ export const ProjectContributors = () => { }, }, { - header: 'Reference code', + header: 'Reference codes', key: 'reference', - value(val: Funder) { - const tx = val.fundingTxs.find((tx) => tx.paidAt) - return tx?.uuid || '-' + render({ fundingTxs }: Funder) { + return ( + + {fundingTxs + .filter((tx) => Boolean(tx.paidAt)) + .map((tx) => ( + {tx.amount}} + > + {tx.uuid} + + ))} + + ) }, }, ],