Created namespace for form controls

This commit is contained in:
Alejandro Celaya
2022-03-05 14:43:43 +01:00
parent ec403d7b1f
commit 0993b43c79
8 changed files with 7 additions and 9 deletions

View File

@@ -21,9 +21,7 @@ export const FormGroupContainer: FC<FormGroupContainerProps> = (
return (
<FormGroup className={className ?? ''}>
<label htmlFor={forId.current} className={labelClassName ?? ''}>
{children}:
</label>
{children && <label htmlFor={forId.current} className={labelClassName ?? ''}>{children}:</label>}
<input
className="form-control"
type={type ?? 'text'}