Skip to content

Commit

Permalink
Hide ETH amount if grant status is Proposed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pabl0cks committed Mar 22, 2024
1 parent 7acbaff commit 97cf564
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/nextjs/app/my-grants/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ const MyGrants: NextPage = () => {
{grant.title}
<span className="text-sm text-gray-500 ml-2">({grant.id})</span>
</h3>
<div className="flex mb-2 items-center">
<Image src="/assets/eth-completed-grant.png" alt="ETH Icon" width={10} height={10} />
<span className="ml-1 tooltip" data-tip="Total amount of the grant">
{grant.askAmount} ETH
</span>
</div>
{grant.status !== PROPOSAL_STATUS.PROPOSED && (
<div className="flex mb-2 items-center">
<Image src="/assets/eth-completed-grant.png" alt="ETH Icon" width={10} height={10} />
<span className="ml-1 tooltip" data-tip="Total amount of the grant">
{grant.askAmount} ETH
</span>
</div>
)}
<p className="m-0">{grant.description}</p>
<p className={`badge ${badgeBgColor[grant.status]}`}>{grant.status}</p>
{grant.status === PROPOSAL_STATUS.APPROVED && (
Expand Down

0 comments on commit 97cf564

Please sign in to comment.