How to use the react-tooltip.hide function in react-tooltip

To help you get started, we’ve selected a few react-tooltip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 0xProject / 0x-monorepo / packages / website / ts / components / inputs / allowance_state_toggle.tsx View on Github external
private async _onToggleAllowanceAsync(): Promise {
        // Close all tooltips
        ReactTooltip.hide();
        if (this.props.userAddress === '') {
            this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen(true);
            return;
        }

        let newAllowanceAmountInBaseUnits = new BigNumber(0);
        if (!this._isAllowanceSet()) {
            newAllowanceAmountInBaseUnits = DEFAULT_ALLOWANCE_AMOUNT_IN_BASE_UNITS;
        }
        const isUnlockingToken = newAllowanceAmountInBaseUnits.gt(0);
        this.setState({
            allowanceState: AllowanceState.Loading,
            loadingMessage: `${isUnlockingToken ? 'Unlocking' : 'Locking'} ${this.props.token.symbol}`,
        });
        const logData = {
            tokenSymbol: this.props.token.symbol,
github 0xProject / 0x-monorepo / packages / website / ts / components / ui / copy_icon.tsx View on Github external
private _hideTooltip(): void {
        ReactTooltip.hide(ReactDOM.findDOMNode(this._copyable));
    }
}
github decred / decrediton / app / components / CopyToClipboardButton.js View on Github external
componentDidUpdate(prevProps, prevState) {
    if(!prevState.showTooltip && this.state.showTooltip) {
      ReactTooltip.show(ReactDOM.findDOMNode(this.refs.copyButtonRef));
    }
    else if(prevState.showTooltip && !this.state.showTooltip) {
      ReactTooltip.hide(ReactDOM.findDOMNode(this.refs.copyButtonRef));
    }
  }
github ensdomains / ens-app / src / components / Tooltip / Tooltip.js View on Github external
useEffect(() => {
    if (show) {
      ReactTooltip.show(findDOMNode(tooltipRef.current))
    } else {
      ReactTooltip.hide(findDOMNode(tooltipRef.current))
    }
  })
github bitshares / bitshares-ui / app / components / Account / AccountPortfolioList.jsx View on Github external
onClick={() => {
                                ReactTooltip.hide();
                                this.showBorrowModal(
                                    asset.get("id"),
                                    asset.getIn([
                                        "bitasset",
                                        "options",
                                        "short_backing_asset"
                                    ]),
                                    account
                                );
                            }}
                        >
github sablierhq / sablier / packages / frontend / src / pages / Stream / index.jsx View on Github external
setTimeout(() => {
      ReactTooltip.hide(this.copyLinkButtonContainerRef);
    }, 2000);
  }

react-tooltip

react tooltip component

MIT
Latest version published 3 months ago

Package Health Score

91 / 100
Full package analysis