diff --git a/src/frontend/apps/calendars/src/features/forms/components/RhfInput.tsx b/src/frontend/apps/calendars/src/features/forms/components/RhfInput.tsx deleted file mode 100644 index feb04c5..0000000 --- a/src/frontend/apps/calendars/src/features/forms/components/RhfInput.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { Controller, useFormContext } from "react-hook-form"; -import { Input, TextArea, TextAreaProps } from "@openfun/cunningham-react"; -import { InputProps } from "@openfun/cunningham-react"; - -export const RhfInput = (props: InputProps & { name: string }) => { - const { control, setValue } = useFormContext(); - return ( - { - return ( - setValue(field.name, e.target.value)} - value={field.value} - /> - ); - }} - /> - ); -}; - -export const RhfTextarea = (props: TextAreaProps & { name: string }) => { - const { control, setValue } = useFormContext(); - return ( - { - return ( -