mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-22 16:23:45 +02:00
ui: fix borked styling
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user