From 2e26e3ed40f8db9768eca569321f45aba07561cd Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 28 Mar 2023 14:53:53 -0400 Subject: [PATCH] fix(striker-ui): change fence port valid type --- .../ManageManifest/AnvilHostInputGroup.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/striker-ui/components/ManageManifest/AnvilHostInputGroup.tsx b/striker-ui/components/ManageManifest/AnvilHostInputGroup.tsx index 91903303..bcc40248 100644 --- a/striker-ui/components/ManageManifest/AnvilHostInputGroup.tsx +++ b/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 = ({ 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 = ({ }, { onFinishBatch: buildFinishInputTestBatchFunction(inputId) }, (message) => { - msgSetters[inputId]({ - children: message, - }); + msgSetters[inputId]({ children: message }); }, )} onFirstRender={buildInputFirstRenderFunction(inputId)}