Display a tooltip when you hover over a location (#7472)

This commit is contained in:
Andy Balaam 2022-01-07 15:11:30 +00:00 committed by GitHub
parent 707f8cd878
commit 309f7bb235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 6 deletions

View file

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