From da0be9cb52291bfbc6cfc833c4dff9e6be203599 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Thu, 26 Feb 2026 14:11:33 +0700 Subject: [PATCH] refactor(FE): Update input components to adjust spacing and text size --- src/components/input/DropFileInput.tsx | 10 ++++++++-- src/components/input/RadioInput.tsx | 4 ++-- src/components/input/SelectInput.tsx | 6 ++++-- src/components/input/TagInput.tsx | 6 ++++-- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/components/input/DropFileInput.tsx b/src/components/input/DropFileInput.tsx index e146a994..c8c88a1e 100644 --- a/src/components/input/DropFileInput.tsx +++ b/src/components/input/DropFileInput.tsx @@ -134,14 +134,20 @@ const DropFileInput: React.FC = ({ {!isError && bottomLabel && (

{bottomLabel}

)} {isError && (

{errorMessage}

diff --git a/src/components/input/RadioInput.tsx b/src/components/input/RadioInput.tsx index e508e7ba..a3ae9e5b 100644 --- a/src/components/input/RadioInput.tsx +++ b/src/components/input/RadioInput.tsx @@ -144,12 +144,12 @@ export const RadioGroup = ({ {/* Label bawah */} {!isError && bottomLabel && ( -

{bottomLabel}

+

{bottomLabel}

)} {/* Pesan error */} {isError && errorMessage && ( -

{errorMessage}

+

{errorMessage}

)} diff --git a/src/components/input/SelectInput.tsx b/src/components/input/SelectInput.tsx index ef959ea7..0edb3b6d 100644 --- a/src/components/input/SelectInput.tsx +++ b/src/components/input/SelectInput.tsx @@ -488,9 +488,11 @@ const SelectInput = (props: SelectInputProps) => { /> )} - {isError &&

{errorMessage}

} + {isError && ( +

{errorMessage}

+ )} {!isError && bottomLabel && ( -

{bottomLabel}

+

{bottomLabel}

)} ); diff --git a/src/components/input/TagInput.tsx b/src/components/input/TagInput.tsx index a14b2f63..6388cffe 100644 --- a/src/components/input/TagInput.tsx +++ b/src/components/input/TagInput.tsx @@ -159,9 +159,11 @@ const TagInput: React.FC = ({ {/* Bottom label or error message */} {!isError && bottomLabel && ( -

{bottomLabel}

+

{bottomLabel}

+ )} + {isError && ( +

{errorMessage}

)} - {isError &&

{errorMessage}

} ); };