Skip to content

Commit

Permalink
fix: remove unneeded change
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasialanz committed Oct 8, 2024
1 parent f438804 commit 250db1f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/pages/components/Popover.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ For custom purposes, you can use the "custom" variant, which is the default.
```jsx example
function CustomPopoverExample() {
const [show, setShow] = useState(false);
const onTogglePopover = () => {
setShow(!show);
}
const onTogglePopover = () => setShow(!show);
const buttonRef = useRef();

return (
Expand Down

0 comments on commit 250db1f

Please sign in to comment.