File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/components/ConfigMapSecret Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -914,19 +914,18 @@ export const ConfigMapSecretForm = React.memo(
914
914
}
915
915
return (
916
916
< div className = "form__row" >
917
- < label className = "form__label" > Name*</ label >
918
- < input
917
+ < CustomInput
918
+ name = "name"
919
+ label = "Name"
919
920
data-testid = { `${ componentType } -name-textbox` }
920
921
value = { state . configName . value }
921
- autoComplete = "off"
922
922
autoFocus
923
923
onChange = { onConfigNameChange }
924
- onBlur = { trimConfigMapName }
925
- type = "text"
926
- className = { `form__input` }
924
+ handleOnBlur = { trimConfigMapName }
927
925
placeholder = { componentType === 'secret' ? 'random-secret' : 'random-configmap' }
926
+ isRequiredField = { true }
927
+ error = { state . configName . error }
928
928
/>
929
- { state . configName . error && < label className = "form__error" > { state . configName . error } </ label > }
930
929
</ div >
931
930
)
932
931
}
You can’t perform that action at this time.
0 commit comments