Skip to content

Commit

Permalink
fix: Show the asterix in "regular" required TextInputCustom (#1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou authored Dec 17, 2024
1 parent 6e67e73 commit c5afb2f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/components/inputs/TextInputCustom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,20 @@ export const TextInputCustom = <T extends FieldValues>({
style={[styles.labelText, fontMedium10, labelStyle]}
>
{label}
{rules?.required && (
<BrandText
style={[
styles.labelText,
fontMedium10,
{
color: additionalRed,
marginLeft: layout.spacing_x0_5,
},
]}
>
*
</BrandText>
)}
</BrandText>
<SpacerColumn size={0.5} />
</>
Expand Down

0 comments on commit c5afb2f

Please sign in to comment.