fix(striker-ui): remove duplicate parameter in CommonUpsInputGroup

main
Tsu-ba-me 2 years ago
parent 28ff0c79bd
commit 831ac43d03
  1. 14
      striker-ui/components/ManageUps/CommonUpsInputGroup.tsx
  2. 3
      striker-ui/types/CommonUpsInputGroup.d.ts

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

@ -1,7 +1,6 @@
type CommonUpsInputGroupOptionalProps = {
previous?: {
hostName?: string;
ipAddress?: string;
upsIPAddress?: string;
upsName?: string;
};
};

Loading…
Cancel
Save