Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2021-01-29 16:58:04 +01:00
parent 47c05c5baf
commit e1b7c8b67c

View File

@ -42,6 +42,7 @@ const InputUID = ({
contentTypeUID, contentTypeUID,
description, description,
error: inputError, error: inputError,
label: inputLabel,
name, name,
onChange, onChange,
validations, validations,
@ -217,7 +218,7 @@ const InputUID = ({
return ( return (
<Wrapper ref={wrapperRef}> <Wrapper ref={wrapperRef}>
<Name htmlFor={name}>{name}</Name> <Name htmlFor={name}>{inputLabel}</Name>
<InputContainer> <InputContainer>
<Input <Input
{...inputProps} {...inputProps}
@ -291,6 +292,7 @@ InputUID.propTypes = {
description: PropTypes.string, description: PropTypes.string,
editable: PropTypes.bool, editable: PropTypes.bool,
error: PropTypes.string, error: PropTypes.string,
label: PropTypes.string.isRequired,
name: PropTypes.string.isRequired, name: PropTypes.string.isRequired,
onChange: PropTypes.func.isRequired, onChange: PropTypes.func.isRequired,
validations: PropTypes.object, validations: PropTypes.object,