add linter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, {FC, FormEvent, PropsWithChildren, ReactNode} from "react"
|
||||
import React, {FC, FormEvent, ReactNode} from "react"
|
||||
import ReactDOM from "react-dom"
|
||||
|
||||
export const Modal: FC<ModalProps> = ({children, show, closeModal, ...props}) => {
|
||||
@@ -9,7 +9,7 @@ export const Modal: FC<ModalProps> = ({children, show, closeModal, ...props}) =>
|
||||
}
|
||||
|
||||
return show && <Overlay onClick={closeModal}>
|
||||
<div className="dark:bg-gray-900 cursor-auto dark:text-white bg-white"
|
||||
<div className="cursor-auto bg-white dark:bg-gray-900 dark:text-white"
|
||||
onClick={stopEvent}
|
||||
{...props}>
|
||||
{children}
|
||||
@@ -29,7 +29,7 @@ const Overlay: FC<OverlayProps> = ({children, ...props}) => {
|
||||
|
||||
if (app) {
|
||||
return ReactDOM.createPortal(
|
||||
<button className={"flex justify-center items-center w-full fixed inset-0 z-10 bg-gray-900/50"}
|
||||
<button className={"fixed inset-0 z-10 flex w-full items-center justify-center bg-gray-900/50"}
|
||||
{...props}>
|
||||
{children}
|
||||
</button>,
|
||||
|
||||
Reference in New Issue
Block a user