diff --git a/src/components/CustomInput.tsx b/src/components/CustomInput.tsx deleted file mode 100644 index a916f25..0000000 --- a/src/components/CustomInput.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import React from "react" -import * as Form from "@radix-ui/react-form" -import type { UseFormRegister } from "react-hook-form" -import type { Inputs } from "./DownloadModal.tsx" - -export const CustomInput = React.forwardRef< - HTMLInputElement, - { - label: string - placeholder: string - errorMessage?: string - match?: - | "valueMissing" - | "badInput" - | "patternMismatch" - | "rangeOverflow" - | "rangeUnderflow" - | "stepMismatch" - | "tooLong" - | "tooShort" - | "typeMismatch" - | "valid" - } & ReturnType> ->(({ onChange, onBlur, name, label, placeholder, match, errorMessage }, ref) => ( - - {label} - - - - - Please enter your {label} - - {match !== undefined && ( - <> - {errorMessage} - - )} - -)) diff --git a/src/components/CustomTextarea.tsx b/src/components/CustomTextarea.tsx deleted file mode 100644 index a6570c3..0000000 --- a/src/components/CustomTextarea.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import React from "react" -import * as Form from "@radix-ui/react-form" -import type { UseFormRegister } from "react-hook-form" -import type { Inputs } from "./DownloadModal.tsx" - -export const CustomTextarea = React.forwardRef< - HTMLTextAreaElement, - { - label: string - placeholder: string - } & ReturnType> ->(({ onChange, onBlur, name, label, placeholder }, ref) => ( - - {label} - -