fix(striker-ui): change fence port valid type

main
Tsu-ba-me 2 years ago
parent c0189cba8d
commit 2e26e3ed40
  1. 12
      striker-ui/components/ManageManifest/AnvilHostInputGroup.tsx

@ -10,7 +10,7 @@ import { InnerPanel, InnerPanelBody, InnerPanelHeader } from '../Panels';
import SwitchWithLabel from '../SwitchWithLabel';
import {
buildIPAddressTestBatch,
buildNumberTestBatch,
buildPeacefulStringTestBatch,
} from '../../lib/test_input';
import { BodyText } from '../Text';
@ -80,16 +80,14 @@ const AnvilHostInputGroup = <M extends MapToInputTestID>({
value={fencePort}
/>
}
inputTestBatch={buildNumberTestBatch(
inputTestBatch={buildPeacefulStringTestBatch(
inputLabel,
() => {
msgSetters[inputId]();
},
{ onFinishBatch: buildFinishInputTestBatchFunction(inputId) },
(message) => {
msgSetters[inputId]({
children: message,
});
msgSetters[inputId]({ children: message });
},
)}
onFirstRender={buildInputFirstRenderFunction(inputId)}
@ -141,9 +139,7 @@ const AnvilHostInputGroup = <M extends MapToInputTestID>({
},
{ onFinishBatch: buildFinishInputTestBatchFunction(inputId) },
(message) => {
msgSetters[inputId]({
children: message,
});
msgSetters[inputId]({ children: message });
},
)}
onFirstRender={buildInputFirstRenderFunction(inputId)}

Loading…
Cancel
Save