mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 10:48:22 +00:00
Make delay adjustable
This commit is contained in:
parent
879d92d930
commit
a6bfa23771
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user