Skip to content

Commit

Permalink
fix: reintroduce hide function
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianMaliszewski committed Sep 4, 2023
1 parent 8d0bd03 commit 4dbf912
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export const Modal = ({
onOpen: handleOpen,
toggle: handleToggle,
modalId: finalId,
hide: handleClose,
})
: children}
<StyledContainer>
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/src/components/Modal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export type ModalState = {
toggle: () => void
visible: boolean
modalId: string
/**
* @deprecated use onClose
*/
hide: () => void
}

export type DisclosureProps = {
Expand Down

0 comments on commit 4dbf912

Please sign in to comment.