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}

} ); };