1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 18:58:08 +00:00

Make delay adjustable

This commit is contained in:
Vladimir Volek 2019-02-06 14:23:54 +01:00
parent 879d92d930
commit a6bfa23771
2 changed files with 5 additions and 5 deletions

View File

@ -31,13 +31,13 @@ const Tooltip = ({
content,
readMoreLink,
children,
delayed,
enterDelayMs,
}) => (
<Wrapper className={className}>
<RcTooltip
arrowContent={<div className="rc-tooltip-arrow-inner" />}
placement={placement}
mouseEnterDelay={delayed ? 1.5 : 0}
mouseEnterDelay={enterDelayMs || 0}
overlay={() => (
<ContentWrapper>
<Content maxWidth={maxWidth}>{content}</Content>
@ -67,7 +67,7 @@ Tooltip.propTypes = {
PropTypes.string,
]),
readMoreLink: PropTypes.string,
delayed: PropTypes.bool,
enterDelayMs: PropTypes.bool,
};
export default Tooltip;

View File

@ -240,7 +240,7 @@ class LeftNavigation extends React.PureComponent<Props, State> {
content={walletTooltipMsg}
maxWidth={200}
placement="bottom"
delayed
enterDelayMs={0.5}
>
<WalletTypeIconWrapper>
<WalletTypeIcon
@ -263,7 +263,7 @@ class LeftNavigation extends React.PureComponent<Props, State> {
content="Number of devices"
maxWidth={200}
placement="bottom"
delayed
enterDelayMs={0.5}
>
<Counter>{this.props.devices.length}</Counter>
</Tooltip>