chore: simply code

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-10-10 12:00:08 +08:00
parent 4b6ee2ad42
commit f023d6296a
@@ -2,6 +2,7 @@ import type { ForwardedRef } from "react"
import { forwardRef } from "react"
import { m } from "~/components/common/Motion"
import { stopPropagation } from "~/lib/dom"
import { cn } from "~/lib/utils"
import { RootPortal } from "../../portal"
@@ -32,7 +33,7 @@ export const ModalOverlay = forwardRef(
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
style={{ zIndex }}
onClick={(e) => e.stopPropagation()}
onClick={stopPropagation}
/>
</RootPortal>
),