diff --git a/src/components/Input.tsx b/src/components/Input.tsx index dc14ca1..1e097b5 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -14,13 +14,14 @@ export const Input = React.forwardRef( return ( {label} - -
- {icon} +
+ {icon && {icon}} + + -
- - + +
+ Please enter your {label} {match !== undefined && ( diff --git a/src/components/Textarea.tsx b/src/components/Textarea.tsx index f419440..2ead700 100644 --- a/src/components/Textarea.tsx +++ b/src/components/Textarea.tsx @@ -27,7 +27,7 @@ export const Textarea = React.forwardRef( onChange={(e) => setCharacterCount(e.target.value.length)} />
- + Please enter your {label}