From 0efcc2c5beeca8b923eebc57de66c7597f94882f Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Wed, 16 Jan 2019 10:40:56 +0100 Subject: [PATCH] add prop delayed to Tooltip component --- src/components/Tooltip/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Tooltip/index.js b/src/components/Tooltip/index.js index 32f504b3..6650a62a 100644 --- a/src/components/Tooltip/index.js +++ b/src/components/Tooltip/index.js @@ -31,11 +31,13 @@ const Tooltip = ({ content, readMoreLink, children, + delayed, }) => ( } placement={placement} + mouseEnterDelay={delayed ? 1.5 : 0} overlay={() => ( {content} @@ -65,6 +67,7 @@ Tooltip.propTypes = { PropTypes.string, ]), readMoreLink: PropTypes.string, + delayed: PropTypes.bool, }; export default Tooltip;