chore: correctly close modals and show toast after creating note from shared text
This commit is contained in:
@@ -2,6 +2,7 @@ import { mergeRefs } from '@/Hooks/mergeRefs'
|
||||
import { Dialog, DialogOptions, useDialogStore } from '@ariakit/react'
|
||||
import { ForwardedRef, forwardRef, ReactNode, useCallback } from 'react'
|
||||
import { useModalAnimation } from '../Modal/useModalAnimation'
|
||||
import { DialogWithClose } from '@/Utils/CloseOpenModalsAndPopovers'
|
||||
|
||||
type Props = {
|
||||
isOpen: boolean
|
||||
@@ -10,8 +11,6 @@ type Props = {
|
||||
close: () => void
|
||||
}
|
||||
|
||||
type DialogWithClose = HTMLDivElement & { close: () => void }
|
||||
|
||||
const ModalOverlay = forwardRef(
|
||||
(
|
||||
{ isOpen, children, animationVariant, close, ...props }: Props & Partial<DialogOptions>,
|
||||
|
||||
Reference in New Issue
Block a user