add linter

This commit is contained in:
Romulus21
2024-02-18 23:30:50 +01:00
parent b53d378ec1
commit ebfc56eba3
34 changed files with 568 additions and 262 deletions

View File

@@ -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>,