Wizard: Rename ChippingInput to LabelInput
This just renames `ChippingInput` component to `LabelInput` and updates all imports.
This commit is contained in:
parent
5f3a3744c5
commit
ba233f2c69
6 changed files with 17 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
@ -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 (
|
||||
<FormGroup label="Ports">
|
||||
<ChippingInput
|
||||
<LabelInput
|
||||
ariaLabel="Add ports"
|
||||
placeholder="Add ports"
|
||||
validator={isPortValid}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
removeEnabledFirewallService,
|
||||
selectFirewall,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
import ChippingInput from '../../../ChippingInput';
|
||||
import LabelInput from '../../../LabelInput';
|
||||
import { useFirewallValidation } from '../../../utilities/useValidation';
|
||||
import { isServiceValid } from '../../../validators';
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ const Services = () => {
|
|||
return (
|
||||
<>
|
||||
<FormGroup label="Disabled services">
|
||||
<ChippingInput
|
||||
<LabelInput
|
||||
ariaLabel="Add disabled service"
|
||||
placeholder="Add disabled service"
|
||||
validator={isServiceValid}
|
||||
|
|
@ -36,7 +36,7 @@ const Services = () => {
|
|||
/>
|
||||
</FormGroup>
|
||||
<FormGroup label="Enabled services">
|
||||
<ChippingInput
|
||||
<LabelInput
|
||||
ariaLabel="Add enabled service"
|
||||
placeholder="Add enabled service"
|
||||
validator={isServiceValid}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import {
|
|||
selectDistribution,
|
||||
selectKernel,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
import ChippingInput from '../../../ChippingInput';
|
||||
import LabelInput from '../../../LabelInput';
|
||||
import { useKernelValidation } from '../../../utilities/useValidation';
|
||||
import { isKernelArgumentValid } from '../../../validators';
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ const KernelArguments = () => {
|
|||
|
||||
return (
|
||||
<FormGroup isRequired={false} label="Append">
|
||||
<ChippingInput
|
||||
<LabelInput
|
||||
ariaLabel="Add kernel argument"
|
||||
placeholder="Add kernel argument"
|
||||
validator={isKernelArgumentValid}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import {
|
|||
selectDistribution,
|
||||
selectServices,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
import ChippingInput from '../../../ChippingInput';
|
||||
import LabelInput from '../../../LabelInput';
|
||||
import { useServicesValidation } from '../../../utilities/useValidation';
|
||||
import { isServiceValid } from '../../../validators';
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ const ServicesInput = () => {
|
|||
return (
|
||||
<>
|
||||
<FormGroup isRequired={false} label="Disabled services">
|
||||
<ChippingInput
|
||||
<LabelInput
|
||||
ariaLabel="Add disabled service"
|
||||
placeholder="Add disabled service"
|
||||
validator={isServiceValid}
|
||||
|
|
@ -72,7 +72,7 @@ const ServicesInput = () => {
|
|||
/>
|
||||
</FormGroup>
|
||||
<FormGroup isRequired={false} label="Masked services">
|
||||
<ChippingInput
|
||||
<LabelInput
|
||||
ariaLabel="Add masked service"
|
||||
placeholder="Add masked service"
|
||||
validator={isServiceValid}
|
||||
|
|
@ -88,7 +88,7 @@ const ServicesInput = () => {
|
|||
/>
|
||||
</FormGroup>
|
||||
<FormGroup isRequired={false} label="Enabled services">
|
||||
<ChippingInput
|
||||
<LabelInput
|
||||
ariaLabel="Add enabled service"
|
||||
placeholder="Add enabled service"
|
||||
validator={isServiceValid}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import {
|
|||
removeNtpServer,
|
||||
selectNtpServers,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
import ChippingInput from '../../../ChippingInput';
|
||||
import LabelInput from '../../../LabelInput';
|
||||
import { useTimezoneValidation } from '../../../utilities/useValidation';
|
||||
import { isNtpServerValid } from '../../../validators';
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ const NtpServersInput = () => {
|
|||
|
||||
return (
|
||||
<FormGroup isRequired={false} label="NTP servers">
|
||||
<ChippingInput
|
||||
<LabelInput
|
||||
ariaLabel="Add NTP server"
|
||||
placeholder="Add NTP servers"
|
||||
validator={isNtpServerValid}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue