mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-24 15:00:58 +00:00
add prop delayed to Tooltip component
This commit is contained in:
parent
d07488146a
commit
0efcc2c5be
@ -31,11 +31,13 @@ const Tooltip = ({
|
||||
content,
|
||||
readMoreLink,
|
||||
children,
|
||||
delayed,
|
||||
}) => (
|
||||
<Wrapper className={className}>
|
||||
<RcTooltip
|
||||
arrowContent={<div className="rc-tooltip-arrow-inner" />}
|
||||
placement={placement}
|
||||
mouseEnterDelay={delayed ? 1.5 : 0}
|
||||
overlay={() => (
|
||||
<ContentWrapper>
|
||||
<Content maxWidth={maxWidth}>{content}</Content>
|
||||
@ -65,6 +67,7 @@ Tooltip.propTypes = {
|
||||
PropTypes.string,
|
||||
]),
|
||||
readMoreLink: PropTypes.string,
|
||||
delayed: PropTypes.bool,
|
||||
};
|
||||
|
||||
export default Tooltip;
|
||||
|
Loading…
Reference in New Issue
Block a user