Display a tooltip when you hover over a location (#7472)
This commit is contained in:
parent
707f8cd878
commit
309f7bb235
4 changed files with 39 additions and 6 deletions
|
@ -36,6 +36,7 @@ const TooltipTarget: React.FC<IProps> = ({
|
|||
alignment,
|
||||
yOffset,
|
||||
tooltipClassName,
|
||||
maxParentWidth,
|
||||
...rest
|
||||
}) => {
|
||||
const [isVisible, setIsVisible] = useState(false);
|
||||
|
@ -63,6 +64,7 @@ const TooltipTarget: React.FC<IProps> = ({
|
|||
yOffset={yOffset}
|
||||
alignment={alignment}
|
||||
visible={isVisible}
|
||||
maxParentWidth={maxParentWidth}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue