Skip to content

Commit

Permalink
Fix typo in useDialog example (#4704)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowystinger committed Jun 26, 2023
1 parent bf8fac4 commit 17e7299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@react-aria/dialog/docs/useDialog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function ModalTrigger({label, children, ...props}) {
let {triggerProps, overlayProps} = useOverlayTrigger({type: 'dialog'}, state);

return <>
<Button {...triggerProps}>Open Dialog</Button>
<Button {...triggerProps}>{label}</Button>
{state.isOpen &&
<Modal state={state}>
{React.cloneElement(children(state.close), overlayProps)}
Expand Down

1 comment on commit 17e7299

@rspbot
Copy link

@rspbot rspbot commented on 17e7299 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.