From 302da65c599d87696b320d766f5ff00f2a9db751 Mon Sep 17 00:00:00 2001 From: randy-ar Date: Mon, 13 Oct 2025 13:09:53 +0700 Subject: [PATCH] fix(FE-51) adjust textarea component ui --- src/components/input/TextArea.tsx | 8 ++++---- .../pages/master-data/customer/form/CustomerForm.tsx | 1 - .../pages/master-data/supplier/form/SupplierForm.tsx | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/input/TextArea.tsx b/src/components/input/TextArea.tsx index b4a6c9f5..e9517277 100644 --- a/src/components/input/TextArea.tsx +++ b/src/components/input/TextArea.tsx @@ -31,7 +31,7 @@ export interface TextAreaProps { endAdornment?: ReactNode; onChange?: ChangeEventHandler; onBlur?: FocusEventHandler; - cols?: number; + rows?: number; } const TextArea = ({ @@ -52,7 +52,7 @@ const TextArea = ({ onBlur, readOnly = false, isLoading = false, - cols = 3 + rows = 3 }: TextAreaProps) => { return (
diff --git a/src/components/pages/master-data/supplier/form/SupplierForm.tsx b/src/components/pages/master-data/supplier/form/SupplierForm.tsx index e3a19177..74c4da27 100644 --- a/src/components/pages/master-data/supplier/form/SupplierForm.tsx +++ b/src/components/pages/master-data/supplier/form/SupplierForm.tsx @@ -348,7 +348,6 @@ const SupplierForm = ({ isError={formik.touched.address && Boolean(formik.errors.address)} errorMessage={formik.errors.address} readOnly={formType === 'detail'} - cols={8} />