delegations layout and tooltip when delegate with vesting

This commit is contained in:
Gala
2022-12-16 08:04:33 +01:00
parent 4995dde705
commit ddb7b0e872
@@ -28,6 +28,17 @@ export const DelegationItem = ({
onItemActionClick?: (item: DelegationWithEverything, action: DelegationListItemActions) => void;
}) => {
const operatingCost = isDelegation(item) && item.cost_params?.interval_operating_cost;
const usesVestingContractTokens = item.uses_vesting_contract_tokens;
const tooltipText = () => {
if (nodeIsUnbonded) {
return 'This node has unbonded and it does not exist anymore. You need to undelegate from it to get your stake and outstanding rewards (if any) back.';
} else if (usesVestingContractTokens) {
return 'Delegation made with locked tockens';
} else {
return '';
}
};
const tooltipText = () => {
if (nodeIsUnbonded) {