mirror of
https://github.com/strapi/strapi.git
synced 2025-10-11 16:13:12 +00:00
Simplify label
This commit is contained in:
parent
b6925b19ac
commit
27f67bfbe9
@ -25,10 +25,8 @@ const ColorPickerInput = ({
|
|||||||
error={error && formatMessage(error)}
|
error={error && formatMessage(error)}
|
||||||
hint={description && formatMessage(description)}
|
hint={description && formatMessage(description)}
|
||||||
>
|
>
|
||||||
<FieldLabel name={name} required={required}>
|
<FieldLabel required={required}>{formatMessage(intlLabel)}</FieldLabel>
|
||||||
{formatMessage(intlLabel)}
|
<input type="color" id={name} name={name} value={value || ''} onChange={onChange} />
|
||||||
</FieldLabel>
|
|
||||||
<input type="color" id={name} name={name} value={value} onChange={onChange} />
|
|
||||||
<FieldHint />
|
<FieldHint />
|
||||||
<FieldError />
|
<FieldError />
|
||||||
</Field>
|
</Field>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user