Add undelegation info

pull/284/head
artemkolodko 11 months ago
parent 4ab0fd25fe
commit a88f90f4b6
  1. 8
      src/pages/AddressPage/StakingDelegations.tsx

@ -68,6 +68,14 @@ function StakingDelegations(props: { delegations: StakingDelegation[] }) {
<Text size={'small'}>Reward</Text> <Text size={'small'}>Reward</Text>
{+item.reward > 0 ? <ONEValue value={item.reward} />: '0 ONE'} {+item.reward > 0 ? <ONEValue value={item.reward} />: '0 ONE'}
</Box> </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> </Box>
}, },
renderValue: () => { renderValue: () => {

Loading…
Cancel
Save