Skip to content

Commit 99d181d

Browse files
Update the example
1 parent d8e4b21 commit 99d181d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/examples/externalState.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import TooltipTrigger from '../../src/index';
33
import '../../src/styles.css';
44

5-
export const Tooltip = ({ handleTooltipState, tooltip, children, ...props }) => (
5+
export const Tooltip = ({ tooltip, children, ...props }) => (
66
<TooltipTrigger
77
{...props}
88
tooltip={({
@@ -16,7 +16,7 @@ export const Tooltip = ({ handleTooltipState, tooltip, children, ...props }) =>
1616
{...getTooltipProps({
1717
innerRef: tooltipRef,
1818
className: "tooltip-container",
19-
handleTooltipState
19+
handleTooltipState: props.onVisibilityChange
2020
})}
2121
>
2222
<div

docs/readme.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ The example files are in `docs/examples` directory.
3333
tooltipShown={on}
3434
tooltip="Press ESC to close"
3535
onVisibilityChange={set}
36-
handleTooltipState={set}
3736
>
3837
Click me
3938
</Tooltip>

0 commit comments

Comments
 (0)