From 954c11101ca73a69ba985d9cbc9beae20a8bb985 Mon Sep 17 00:00:00 2001 From: Brandon Egger Date: Tue, 5 Sep 2023 23:38:04 -0500 Subject: [PATCH] fix type errors --- src/components/ResourceTable.tsx | 4 ++-- src/components/admin/common.tsx | 6 +++--- src/components/admin/resources/form.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/ResourceTable.tsx b/src/components/ResourceTable.tsx index 444a50c..d2575f0 100644 --- a/src/components/ResourceTable.tsx +++ b/src/components/ResourceTable.tsx @@ -49,7 +49,7 @@ export const ResourceInfo = ({ more info @@ -61,7 +61,7 @@ export const ResourceInfo = ({ )} diff --git a/src/components/admin/common.tsx b/src/components/admin/common.tsx index 71beaa8..147bda3 100644 --- a/src/components/admin/common.tsx +++ b/src/components/admin/common.tsx @@ -1,6 +1,6 @@ import { ExclamationCircleIcon } from "@heroicons/react/24/solid"; import Link from "next/link"; -import { useEffect, useState } from "react"; +import { type ButtonHTMLAttributes, useEffect, useState } from "react"; const AdminActionBody = ({ label, @@ -49,7 +49,7 @@ const AdminActionConfirmButton = ({ label: string; onConfirm?: () => void; symbol: JSX.Element | undefined; - type?: HTMLButtonElement["type"]; + type?: ButtonHTMLAttributes["type"]; }) => { const [isConfirmView, setConfirmView] = useState(false); @@ -96,7 +96,7 @@ const AdminActionButton = ({ label: string; onClick?: () => void; symbol: JSX.Element | undefined; - type?: HTMLButtonElement["type"]; + type?: ButtonHTMLAttributes["type"]; }) => { return (