fix(striker-ui): add id prop to text inputs

main
Tsu-ba-me 2 years ago
parent 22ba770677
commit 585030861f
  1. 2
      striker-ui/components/NetworkInitForm.tsx
  2. 5
      striker-ui/components/StrikerInitForm.tsx

@ -577,6 +577,7 @@ const NetworkInitForm: FC = () => {
); );
})} })}
<OutlinedInputWithLabel <OutlinedInputWithLabel
id={`network-${inputUUID}-ip-address`}
label="IP address" label="IP address"
onChange={({ target: { value } }) => { onChange={({ target: { value } }) => {
networkInput.ipAddress = String(value); networkInput.ipAddress = String(value);
@ -586,6 +587,7 @@ const NetworkInitForm: FC = () => {
value={ipAddress} value={ipAddress}
/> />
<OutlinedInputWithLabel <OutlinedInputWithLabel
id={`network-${inputUUID}-subnet-mask`}
label="Subnet mask" label="Subnet mask"
onChange={({ target: { value } }) => { onChange={({ target: { value } }) => {
networkInput.subnetMask = String(value); networkInput.subnetMask = String(value);

@ -128,6 +128,7 @@ const StrikerInitGeneralForm: FC = () => {
}} }}
> >
<OutlinedInputWithLabel <OutlinedInputWithLabel
id="striker-init-general-organization-name"
inputProps={{ inputProps={{
onBlur: ({ target: { value } }) => { onBlur: ({ target: { value } }) => {
const newOrganizationName = String(value); const newOrganizationName = String(value);
@ -142,6 +143,7 @@ const StrikerInitGeneralForm: FC = () => {
value={organizationNameInput} value={organizationNameInput}
/> />
<OutlinedInputWithLabel <OutlinedInputWithLabel
id="striker-init-general-organization-prefix"
inputProps={{ inputProps={{
onBlur: ({ target: { value } }) => { onBlur: ({ target: { value } }) => {
const newOrganizationPrefix = String(value); const newOrganizationPrefix = String(value);
@ -161,6 +163,7 @@ const StrikerInitGeneralForm: FC = () => {
value={organizationPrefixInput} value={organizationPrefixInput}
/> />
<OutlinedInputWithLabel <OutlinedInputWithLabel
id="striker-init-general-domain-name"
label="Domain name" label="Domain name"
inputProps={{ inputProps={{
onBlur: ({ target: { value } }) => { onBlur: ({ target: { value } }) => {
@ -180,6 +183,7 @@ const StrikerInitGeneralForm: FC = () => {
value={domainNameInput} value={domainNameInput}
/> />
<OutlinedInputWithLabel <OutlinedInputWithLabel
id="striker-init-general-host-number"
inputProps={{ inputProps={{
onBlur: ({ target: { value } }) => { onBlur: ({ target: { value } }) => {
const newHostNumber = parseInt(value, 10); const newHostNumber = parseInt(value, 10);
@ -199,6 +203,7 @@ const StrikerInitGeneralForm: FC = () => {
value={hostNumberInput} value={hostNumberInput}
/> />
<OutlinedInputWithLabel <OutlinedInputWithLabel
id="striker-init-general-host-name"
label="Host name" label="Host name"
onChange={handleHostNameInputOnChange} onChange={handleHostNameInputOnChange}
value={hostNameInput} value={hostNameInput}

Loading…
Cancel
Save