Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
chore: add comment about tooltip buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Nov 5, 2024
1 parent f78983b commit 47d91d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/staking/app/stake/[contract]/NodeStakingButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export function NodeStakingButton({
{dictionary('button.submitMultiStake', { amount: formattedWatchedStakeAmount })}
</Button>
) : (
// TODO: Add tooltip buttons as a component because this is getting ridiculous. This current implementation is required as the tooltip mounts its events to the child, so if its a button its game over, hence the div sandwiched between the tooltip and button. (if the button is disabled it also disabled the tooltip which is annoying)
<Tooltip tooltipContent={dictionary('button.submitMultiRegisterDisabledDescription')}>
<div>
<Button
Expand Down

0 comments on commit 47d91d9

Please sign in to comment.