added List Input

This commit is contained in:
PxlLoewe
2025-03-26 14:28:35 -07:00
parent c8d91b684f
commit 74d97c7eea
3 changed files with 93 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import { useState } from "react";
import { deleteKeyword, upsertKeyword } from "../action";
import { Button } from "../../../../_components/ui/Button";
import { redirect } from "next/navigation";
import { ListInput } from "_components/ui/List";
export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
const form = useForm<z.infer<typeof KeywordOptionalDefaultsSchema>>({
@@ -69,11 +70,11 @@ export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
name="description"
className="input-sm"
/>
<Input
form={form}
label="HPG Missionstypen"
name="hpgMissionsType"
<ListInput
className="input-sm"
control={form.control}
name="hpgMissionsType"
label="HPG Missions presets"
/>
</div>
</div>