diff options
author | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-17 13:29:56 +0200 |
---|---|---|
committer | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-17 13:29:56 +0200 |
commit | 3ea2579e679624f0fe3b8b31dc371a7baebda1fc (patch) | |
tree | a6286386aea2a3bbf3a497e02f76b1b6b39fea21 /modern/src/common | |
parent | bf4a9e5c499c9eee9f8b63dbb6733e09e3090fd0 (diff) | |
download | trackermap-web-3ea2579e679624f0fe3b8b31dc371a7baebda1fc.tar.gz trackermap-web-3ea2579e679624f0fe3b8b31dc371a7baebda1fc.tar.bz2 trackermap-web-3ea2579e679624f0fe3b8b31dc371a7baebda1fc.zip |
Create DelayedTooltip component
Diffstat (limited to 'modern/src/common')
-rw-r--r-- | modern/src/common/components/DelayedTooltip.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modern/src/common/components/DelayedTooltip.js b/modern/src/common/components/DelayedTooltip.js new file mode 100644 index 00000000..c8872adb --- /dev/null +++ b/modern/src/common/components/DelayedTooltip.js @@ -0,0 +1,16 @@ +import React from 'react'; +import Tooltip from '@mui/material/Tooltip'; + +const DelayedTooltip = ({ + ...props +}) => { + ( + <Tooltip + {...props} + enterDelay={700} + enterNextDelay={700} + /> + ); +}; + +export default DelayedTooltip; |