aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-25 06:19:06 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-25 06:19:06 +0800
commitc0d75c64767c36b2d08d5392d49f8f3994ba6f32 (patch)
tree3a766b6474d650a975c098d7dbc324002a7377c9
parent5b6cf447e5793a775d8d590647c85971a6746909 (diff)
downloaddexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.tar.gz
dexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.tar.zst
dexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.zip
Hide tooltip after allowance toggle click
-rw-r--r--packages/website/ts/components/inputs/allowance_state_toggle.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/components/inputs/allowance_state_toggle.tsx b/packages/website/ts/components/inputs/allowance_state_toggle.tsx
index 764013682..4f986dadc 100644
--- a/packages/website/ts/components/inputs/allowance_state_toggle.tsx
+++ b/packages/website/ts/components/inputs/allowance_state_toggle.tsx
@@ -59,7 +59,7 @@ export class AllowanceStateToggle extends React.Component<AllowanceStateTogglePr
const tooltipId = `tooltip-id-${this.props.token.symbol}`;
return (
<Container cursor="pointer">
- <ReactTooltip effect="solid" offset={{ top: 3 }} id={tooltipId}>
+ <ReactTooltip id={tooltipId} effect="solid" offset={{ top: 3 }}>
{this._getTooltipContent()}
</ReactTooltip>
<div
@@ -114,6 +114,8 @@ export class AllowanceStateToggle extends React.Component<AllowanceStateTogglePr
}
}
private async _onToggleAllowanceAsync(): Promise<void> {
+ // Close all tooltips
+ ReactTooltip.hide();
if (this.props.userAddress === '') {
this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen(true);
return;