Merge pull request #284 from ArtemKolodko/add_undelegation_info

Add undelegation info
master
Artem 11 months ago committed by GitHub
commit 1924e42975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/pages/AddressPage/StakingDelegations.tsx

@ -68,6 +68,14 @@ function StakingDelegations(props: { delegations: StakingDelegation[] }) {
<Text size={'small'}>Reward</Text>
{+item.reward > 0 ? <ONEValue value={item.reward} />: '0 ONE'}
</Box>
{item.undelegations.length > 0 &&
item.undelegations.map((undelegation) => {
return <Box direction={'row'} gap={'8px'}>
<Text size={'small'}>Undelegation (Epoch {undelegation.epoch})</Text>
{+item.reward > 0 ? <ONEValue value={undelegation.amount} />: '0 ONE'}
</Box>
})
}
</Box>
},
renderValue: () => {

Loading…
Cancel
Save