Fix som Bugs #33

This commit is contained in:
nocnico
2025-06-05 23:36:11 +02:00
parent ea21c8d141
commit 91d811e289
7 changed files with 27 additions and 20 deletions

View File

@@ -1,11 +1,5 @@
import DatePicker, { DatePickerProps, registerLocale } from "react-datepicker";
import {
Control,
Controller,
FieldValues,
Path,
PathValue,
} from "react-hook-form";
import { Control, Controller, FieldValues, Path } from "react-hook-form";
import { de } from "date-fns/locale";
registerLocale("de", de);
@@ -26,6 +20,7 @@ export const DateInput = <T extends FieldValues>({
name={name}
render={({ field }) => (
<DatePicker
className="input input-bordered mt-2"
locale={"de"}
onChange={(date) => field.onChange(date)}
selected={field.value}