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