mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove onOpenChange
This commit is contained in:
parent
6d4278a8f0
commit
91df117072
2 changed files with 0 additions and 16 deletions
|
|
@ -19,13 +19,6 @@ type ConfirmationModalProps = {
|
|||
}
|
||||
|
||||
export function ConfirmationModal(props: ConfirmationModalProps): JSX.Element {
|
||||
const safeOnOpenChange = useCallback(
|
||||
(open: boolean) => {
|
||||
// document.body.style.removeProperty('pointer-events')
|
||||
props.onOpenChange(open)
|
||||
},
|
||||
[props]
|
||||
)
|
||||
return (
|
||||
<ModalRoot defaultOpen onOpenChange={props.onOpenChange}>
|
||||
<ModalOverlay />
|
||||
|
|
|
|||
|
|
@ -170,15 +170,6 @@ export function SetLabelsModal(props: SetLabelsModalProps): JSX.Element {
|
|||
}
|
||||
}, [highlightLastLabel, selectedLabels, dispatchLabels])
|
||||
|
||||
const safeOnOpenChange = useCallback(
|
||||
(open: boolean) => {
|
||||
console.log('safe on open change called')
|
||||
// document.body.style.removeProperty('pointer-events')
|
||||
props.onOpenChange(open)
|
||||
},
|
||||
[props]
|
||||
)
|
||||
|
||||
return (
|
||||
<ModalRoot defaultOpen onOpenChange={props.onOpenChange}>
|
||||
<Dialog.Portal>
|
||||
|
|
|
|||
Loading…
Reference in a new issue