From d7f52bf74f8df45324ca5ebec8cb912303b0f7b6 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:35 -0400 Subject: [PATCH] Remove JSX.Element typing --- components/NewGameBan.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",