Fix Interface Variable Names

This commit is contained in:
aftabrehan
2024-02-03 20:13:09 +05:00
parent 214ee9dd21
commit 759026d203
11 changed files with 25 additions and 22 deletions

View File

@@ -1,12 +1,15 @@
import { useRef, useEffect, useState } from 'react'
import { createPortal } from 'react-dom'
interface modalPortal {
interface ModalPortalProps {
children: React.ReactNode
selector?: string
}
export const ModalPortal = ({ children, selector = 'modal' }: modalPortal) => {
export const ModalPortal = ({
children,
selector = 'modal',
}: ModalPortalProps) => {
const ref = useRef<HTMLDivElement | null>(null)
const [mounted, setMounted] = useState(false)