|
|
@ -5,11 +5,7 @@ import InputWithRef from '../InputWithRef'; |
|
|
|
import OutlinedInputWithLabel from '../OutlinedInputWithLabel'; |
|
|
|
import OutlinedInputWithLabel from '../OutlinedInputWithLabel'; |
|
|
|
|
|
|
|
|
|
|
|
const CommonUpsInputGroup: FC<CommonUpsInputGroupProps> = ({ |
|
|
|
const CommonUpsInputGroup: FC<CommonUpsInputGroupProps> = ({ |
|
|
|
previous: { |
|
|
|
previous: { upsIPAddress: previousIpAddress, upsName: previousUpsName } = {}, |
|
|
|
hostName: previousHostName, |
|
|
|
|
|
|
|
ipAddress: previousIpAddress, |
|
|
|
|
|
|
|
upsName: previousUpsName, |
|
|
|
|
|
|
|
} = {}, |
|
|
|
|
|
|
|
}) => ( |
|
|
|
}) => ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<Grid |
|
|
|
<Grid |
|
|
@ -22,7 +18,7 @@ const CommonUpsInputGroup: FC<CommonUpsInputGroupProps> = ({ |
|
|
|
<OutlinedInputWithLabel |
|
|
|
<OutlinedInputWithLabel |
|
|
|
id="common-ups-input-host-name" |
|
|
|
id="common-ups-input-host-name" |
|
|
|
label="Host name" |
|
|
|
label="Host name" |
|
|
|
value={previousHostName} |
|
|
|
value={previousUpsName} |
|
|
|
/> |
|
|
|
/> |
|
|
|
} |
|
|
|
} |
|
|
|
required |
|
|
|
required |
|
|
@ -46,12 +42,6 @@ const CommonUpsInputGroup: FC<CommonUpsInputGroupProps> = ({ |
|
|
|
}} |
|
|
|
}} |
|
|
|
spacing="1em" |
|
|
|
spacing="1em" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<input |
|
|
|
|
|
|
|
hidden |
|
|
|
|
|
|
|
id="common-ups-input-ups-name" |
|
|
|
|
|
|
|
readOnly |
|
|
|
|
|
|
|
value={previousUpsName} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</> |
|
|
|
</> |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|