From a6bfa237710c7d18b4c8667c5b38792c3e3442fa Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Wed, 6 Feb 2019 14:23:54 +0100 Subject: [PATCH] Make delay adjustable --- src/components/Tooltip/index.js | 6 +++--- src/views/Wallet/components/LeftNavigation/index.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Tooltip/index.js b/src/components/Tooltip/index.js index 6650a62a..5aa81ee4 100644 --- a/src/components/Tooltip/index.js +++ b/src/components/Tooltip/index.js @@ -31,13 +31,13 @@ const Tooltip = ({ content, readMoreLink, children, - delayed, + enterDelayMs, }) => ( } placement={placement} - mouseEnterDelay={delayed ? 1.5 : 0} + mouseEnterDelay={enterDelayMs || 0} overlay={() => ( {content} @@ -67,7 +67,7 @@ Tooltip.propTypes = { PropTypes.string, ]), readMoreLink: PropTypes.string, - delayed: PropTypes.bool, + enterDelayMs: PropTypes.bool, }; export default Tooltip; diff --git a/src/views/Wallet/components/LeftNavigation/index.js b/src/views/Wallet/components/LeftNavigation/index.js index a7668f20..c4a66209 100644 --- a/src/views/Wallet/components/LeftNavigation/index.js +++ b/src/views/Wallet/components/LeftNavigation/index.js @@ -240,7 +240,7 @@ class LeftNavigation extends React.PureComponent { content={walletTooltipMsg} maxWidth={200} placement="bottom" - delayed + enterDelayMs={0.5} > { content="Number of devices" maxWidth={200} placement="bottom" - delayed + enterDelayMs={0.5} > {this.props.devices.length}