Skip to content

Commit

Permalink
token-account: Show delegate and delegated amount
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Dec 13, 2023
1 parent e7ee73d commit 386789e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/components/account/TokenAccountSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,26 @@ function TokenAccountCard({ account, info }: { account: Account; info: TokenAcco
</td>
</tr>
)}
{info.delegate && (
<tr>
<td>Delegate</td>
<td className="text-lg-end">
<Address pubkey={info.delegate} alignRight link />
</td>
</tr>
)}
{info.delegatedAmount && (
<tr>
<td>Delegated amount {typeof symbol === 'string' && `(${symbol})`}</td>
<td className="text-lg-end">
{info.isNative ? (
<>
{'\u25ce'}<span className="font-monospace">{new BigNumber(info.delegatedAmount.uiAmountString).toFormat(9)}</span>
</>
) : <>{info.delegatedAmount.uiAmountString}</>}
</td>
</tr>
)}
</TableCardBody>
</div>
);
Expand Down

0 comments on commit 386789e

Please sign in to comment.