prometheus + load-testing
This commit is contained in:
@@ -13,7 +13,7 @@ import { redirect } from "next/navigation";
|
||||
import { ListInput } from "_components/ui/List";
|
||||
|
||||
export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
|
||||
const form = useForm<z.infer<typeof KeywordOptionalDefaultsSchema>>({
|
||||
const form = useForm({
|
||||
resolver: zodResolver(KeywordOptionalDefaultsSchema),
|
||||
defaultValues: keyword,
|
||||
});
|
||||
@@ -36,9 +36,7 @@ export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
|
||||
<FileText className="w-5 h-5" /> Allgemeines
|
||||
</h2>
|
||||
<label className="form-control w-full ">
|
||||
<span className="label-text text-lg flex items-center gap-2">
|
||||
Kategorie
|
||||
</span>
|
||||
<span className="label-text text-lg flex items-center gap-2">Kategorie</span>
|
||||
<select
|
||||
className="input-sm select select-bordered select-sm w-full"
|
||||
{...form.register("category")}
|
||||
@@ -50,12 +48,7 @@ export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
<Input
|
||||
form={form}
|
||||
label="Abkürzung"
|
||||
name="abreviation"
|
||||
className="input-sm"
|
||||
/>
|
||||
<Input form={form} label="Abkürzung" name="abreviation" className="input-sm" />
|
||||
<Input
|
||||
form={form}
|
||||
label="Name"
|
||||
@@ -82,11 +75,7 @@ export const KeywordForm = ({ keyword }: { keyword?: Keyword }) => {
|
||||
<div className="card bg-base-200 shadow-xl col-span-6">
|
||||
<div className="card-body ">
|
||||
<div className="flex w-full gap-4">
|
||||
<Button
|
||||
isLoading={loading}
|
||||
type="submit"
|
||||
className="btn btn-primary flex-1"
|
||||
>
|
||||
<Button isLoading={loading} type="submit" className="btn btn-primary flex-1">
|
||||
Speichern
|
||||
</Button>
|
||||
{keyword && (
|
||||
|
||||
@@ -12,7 +12,7 @@ import { Button } from "../../../../_components/ui/Button";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export const StationForm = ({ station }: { station?: Station }) => {
|
||||
const form = useForm<z.infer<typeof StationOptionalDefaultsSchema>>({
|
||||
const form = useForm({
|
||||
resolver: zodResolver(StationOptionalDefaultsSchema),
|
||||
defaultValues: station,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user