Skip to content

Commit

Permalink
feat(ui): display epoch index in undelegate transaction action (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
VanishMax authored Jul 1, 2024
1 parent 141639e commit 80c6acb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ui/components/ui/tx/actions-views/undelegate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ export const UndelegateComponent = ({ value }: { value: Undelegate }) => {
label='Undelegate'
visibleContent={
<ActionDetails>
{!!value.fromEpoch && (
<ActionDetails.Row label='Epoch index'>
{value.fromEpoch.index.toString()}
</ActionDetails.Row>
)}

{!!value.delegationAmount && (
<ActionDetails.Row label='Delegation amount'>
{joinLoHiAmount(value.delegationAmount).toString()}
Expand Down

0 comments on commit 80c6acb

Please sign in to comment.