Remove JSX.Element typing
This commit is contained in:
parent
f787e5e4d8
commit
d7f52bf74f
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user