Fix stake more action
This commit is contained in:
@@ -15,7 +15,6 @@ const StakeActions = ({
|
||||
}) => {
|
||||
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
|
||||
const open = Boolean(anchorEl);
|
||||
console.log("nodeIdentityKey :>> ", nodeIdentityKey);
|
||||
|
||||
const handleShowMenu = (event: React.MouseEvent<HTMLButtonElement>) => {
|
||||
event.stopPropagation();
|
||||
@@ -49,15 +48,16 @@ const StakeActions = ({
|
||||
}}
|
||||
hideBackdrop
|
||||
>
|
||||
{nodeIdentityKey && (
|
||||
<StakeAction
|
||||
actionName="Stake more"
|
||||
onSelect={() => handleActionSelect("stake")}
|
||||
/>
|
||||
)}
|
||||
<StakeAction
|
||||
actionName="Unstake"
|
||||
onSelect={() => handleActionSelect("unstake")}
|
||||
/>
|
||||
|
||||
<StakeAction
|
||||
actionName="Stake more"
|
||||
onSelect={() => handleActionSelect("stake")}
|
||||
/>
|
||||
</Menu>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -326,6 +326,7 @@ const StakeTable = ({ nodes }: { nodes: MappedNymNodes }) => {
|
||||
Cell: ({ row }) => (
|
||||
<StakeActions
|
||||
nodeId={row.original.delegation?.node_id}
|
||||
nodeIdentityKey={row.original.node?.identity_key}
|
||||
onActionSelect={(action) => {
|
||||
handleActionSelect(
|
||||
action,
|
||||
|
||||
Reference in New Issue
Block a user