From ba233f2c693ea36abc53c57700d9f4a89d2a615f Mon Sep 17 00:00:00 2001 From: regexowl Date: Tue, 4 Mar 2025 08:41:38 +0100 Subject: [PATCH] Wizard: Rename `ChippingInput` to `LabelInput` This just renames `ChippingInput` component to `LabelInput` and updates all imports. --- .../{ChippingInput.tsx => LabelInput.tsx} | 8 ++++---- .../steps/Firewall/components/PortsInput.tsx | 4 ++-- .../steps/Firewall/components/Services.tsx | 6 +++--- .../steps/Kernel/components/KernelArguments.tsx | 4 ++-- .../steps/Services/components/ServicesInputs.tsx | 8 ++++---- .../steps/Timezone/components/NtpServersInput.tsx | 4 ++-- 6 files changed, 17 insertions(+), 17 deletions(-) rename src/Components/CreateImageWizard/{ChippingInput.tsx => LabelInput.tsx} (97%) diff --git a/src/Components/CreateImageWizard/ChippingInput.tsx b/src/Components/CreateImageWizard/LabelInput.tsx similarity index 97% rename from src/Components/CreateImageWizard/ChippingInput.tsx rename to src/Components/CreateImageWizard/LabelInput.tsx index a4bc6974..08d8278e 100644 --- a/src/Components/CreateImageWizard/ChippingInput.tsx +++ b/src/Components/CreateImageWizard/LabelInput.tsx @@ -17,7 +17,7 @@ import { StepValidation } from './utilities/useValidation'; import { useAppDispatch } from '../../store/hooks'; -type ChippingInputProps = { +type LabelInputProps = { ariaLabel: string; placeholder: string; validator: (value: string) => boolean; @@ -30,7 +30,7 @@ type ChippingInputProps = { fieldName: string; }; -const ChippingInput = ({ +const LabelInput = ({ ariaLabel, placeholder, validator, @@ -41,7 +41,7 @@ const ChippingInput = ({ removeAction, stepValidation, fieldName, -}: ChippingInputProps) => { +}: LabelInputProps) => { const dispatch = useAppDispatch(); const [inputValue, setInputValue] = useState(''); @@ -153,4 +153,4 @@ const ChippingInput = ({ ); }; -export default ChippingInput; +export default LabelInput; diff --git a/src/Components/CreateImageWizard/steps/Firewall/components/PortsInput.tsx b/src/Components/CreateImageWizard/steps/Firewall/components/PortsInput.tsx index 411afd29..059b7d51 100644 --- a/src/Components/CreateImageWizard/steps/Firewall/components/PortsInput.tsx +++ b/src/Components/CreateImageWizard/steps/Firewall/components/PortsInput.tsx @@ -8,7 +8,7 @@ import { removePort, selectFirewall, } from '../../../../../store/wizardSlice'; -import ChippingInput from '../../../ChippingInput'; +import LabelInput from '../../../LabelInput'; import { useFirewallValidation } from '../../../utilities/useValidation'; import { isPortValid } from '../../../validators'; @@ -19,7 +19,7 @@ const PortsInput = () => { return ( - { return ( <> - { /> - { return ( - { return ( <> - { /> - { /> - { return ( -