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}
-
+