style: react component prop readonly

This commit is contained in:
ReaJason
2025-03-30 15:33:31 +08:00
parent e4c29fdd0f
commit 29f5f4285f
12 changed files with 22 additions and 16 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { FormSchema } from "@/types/schema.ts";
import { FormProvider, UseFormReturn } from "react-hook-form";
import { useTranslation } from "react-i18next";
export function OptionalClassFormField({ form }: { form: UseFormReturn<FormSchema> }) {
export function OptionalClassFormField({ form }: Readonly<{ form: UseFormReturn<FormSchema> }>) {
const { t } = useTranslation();
return (
<FormProvider {...form}>