diff --git a/components/NewGameBan.tsx b/components/NewGameBan.tsx index d0e8f06..cc50ab5 100644 --- a/components/NewGameBan.tsx +++ b/components/NewGameBan.tsx @@ -22,11 +22,11 @@ import { VStack, useToast, } from "@chakra-ui/react"; -import { useState } from "react"; +import { type ReactElement, useState } from "react"; export default function (props: { isOpen: boolean; onClose: () => void }) { const actionMap: { [k: string]: number } = {}; - const [rows, setRows] = useState([] as JSX.Element[]); + const [rows, setRows] = useState([] as ReactElement[]); const toast = useToast(); const fileTypes: { [k: string]: string } = { gif: "image/gif",