diff --git a/src/components/DownloadModal.tsx b/src/components/DownloadModal.tsx index 58b769b..7ee3cd8 100644 --- a/src/components/DownloadModal.tsx +++ b/src/components/DownloadModal.tsx @@ -3,7 +3,7 @@ import * as Dialog from "@radix-ui/react-dialog" import * as Form from "@radix-ui/react-form" import { Cross2Icon, DownloadIcon, PlusIcon } from "@radix-ui/react-icons" import { useForm, Controller, type SubmitHandler } from "react-hook-form" -import { CustomTextarea } from "./Textarea.tsx" +import { Textarea } from "./Textarea.tsx" import Button from "./Button.tsx" import { Input } from "./Input.tsx" @@ -98,7 +98,7 @@ const DownloadModal: React.FC = ({ filesToDownload }) => { name="description" control={control} render={() => ( - { errorMessage?: string } -// input, -// select { -// @apply bg-white; -// @apply rounded-full; -// @apply shadow-inner; -// @apply min-w-60; -// @apply w-max; -// @apply py-3; -// @apply px-5; -// } - export const Input = React.forwardRef( ({ label, name, icon, match, errorMessage, ...delegated }: InputProps, ref) => { return ( diff --git a/src/components/Textarea.tsx b/src/components/Textarea.tsx index f9ae005..1b7dedd 100644 --- a/src/components/Textarea.tsx +++ b/src/components/Textarea.tsx @@ -6,7 +6,7 @@ interface TextareaProps extends React.TextareaHTMLAttributes( +export const Textarea = React.forwardRef( ({ name, label, ...delegated }, ref) => ( {label}