Skip to content

Commit 728c305

Browse files
committed
added CustmInput in config map secret form
1 parent 5a0dab4 commit 728c305

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/components/ConfigMapSecret/ConfigMapSecretForm.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -914,19 +914,18 @@ export const ConfigMapSecretForm = React.memo(
914914
}
915915
return (
916916
<div className="form__row">
917-
<label className="form__label">Name*</label>
918-
<input
917+
<CustomInput
918+
name="name"
919+
label="Name"
919920
data-testid={`${componentType}-name-textbox`}
920921
value={state.configName.value}
921-
autoComplete="off"
922922
autoFocus
923923
onChange={onConfigNameChange}
924-
onBlur={trimConfigMapName}
925-
type="text"
926-
className={`form__input`}
924+
handleOnBlur={trimConfigMapName}
927925
placeholder={componentType === 'secret' ? 'random-secret' : 'random-configmap'}
926+
isRequiredField={true}
927+
error={state.configName.error}
928928
/>
929-
{state.configName.error && <label className="form__error">{state.configName.error}</label>}
930929
</div>
931930
)
932931
}

0 commit comments

Comments
 (0)