From 4b8688e489ad97bb5fc988837ab5a454bd7f61fd Mon Sep 17 00:00:00 2001 From: Omotola Odusanya Date: Sat, 20 Jul 2024 18:15:49 +0100 Subject: [PATCH] null --- app/components/constant/index.tsx | 4 ++-- app/components/textarea/index.tsx | 12 ++++++------ app/routes/_index.tsx | 2 ++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/components/constant/index.tsx b/app/components/constant/index.tsx index e37fdf69..f035a5f4 100644 --- a/app/components/constant/index.tsx +++ b/app/components/constant/index.tsx @@ -12,7 +12,7 @@ export const defaultFormError: IFormError = { [FormField.bio]: null, }; -export const defaultAlert: { message: string | null; classType?: string } = { - message: null, +export const defaultAlert: { message: string | undefined; classType?: string } = { + message: undefined, classType: undefined, }; diff --git a/app/components/textarea/index.tsx b/app/components/textarea/index.tsx index f79ea0e6..047aaba4 100644 --- a/app/components/textarea/index.tsx +++ b/app/components/textarea/index.tsx @@ -1,17 +1,17 @@ import React from "react"; -interface Properties { +interface Props { label: string; name: string; value: string; placeholder?: string; disabled?: boolean; error?: string | null; - handleChange: (e: React.ChangeEvent) => void; + handleChange: (error: React.ChangeEvent) => void; style?: React.CSSProperties; } -export const TextAreaField: React.FC = ({ +export const TextAreaField: React.FC = ({ label, name, placeholder, @@ -26,14 +26,14 @@ export const TextAreaField: React.FC = ({ {label}
-
+