dumb refactor but sunk cost is to great keep pushing

This commit is contained in:
2025-08-03 22:53:52 +02:00
parent 2816842b5d
commit e74b30e04c
35 changed files with 621 additions and 1287 deletions

View File

@@ -0,0 +1,17 @@
import type { Control, FieldValues, Path } from "react-hook-form";
import { FormField, FormItem, FormLabel } from "~/components/ui/form";
import { Input } from "~/components/ui/input";
export default function TexttInputFormField<T extends FieldValues>(params: { control: Control<T>, name: Path<T>, label:string }) {
return (
<FormField
control={params.control}
name={params.name}
render={({ field }) => (
<FormItem className="flex flex-col">
<FormLabel>{params.label}</FormLabel>
<Input placeholder="release link" onChange={field.onChange} value={field.value == null ? undefined : field.value} />
</FormItem>
)}
/>
)
}