1
0
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:
slowbackspace 2019-01-16 10:40:56 +01:00
parent d07488146a
commit 0efcc2c5be

View File

@ -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;