Fix Interface Variable Names
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user