ui: fix borked styling
This commit is contained in:
parent
7f290c6e52
commit
b8b481b57b
8 changed files with 68 additions and 55 deletions
|
@ -17,7 +17,11 @@ const FormikFieldWrapper = ({ id, name, label, className, description, validate,
|
|||
<Field name={name} validate={validate}>
|
||||
{
|
||||
({ field, form: { errors, touched } }: FieldProps) => (
|
||||
<div className={`${className} ${(touched[field.name] && errors[field.name]) ? 'has-error' : undefined}`}>
|
||||
<div className={className ?
|
||||
`${className} ${(touched[field.name] && errors[field.name]) ? 'has-error' : undefined}`
|
||||
:
|
||||
`${(touched[field.name] && errors[field.name]) ? 'has-error' : undefined}`}
|
||||
>
|
||||
{label && <Label htmlFor={id}>{label}</Label>}
|
||||
{children}
|
||||
<InputError errors={errors} touched={touched} name={field.name}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue