= ({
return (
);
diff --git a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/ProvidersSection/components/ProvidersEdit.tsx b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/ProvidersSection/components/ProvidersEdit.tsx
index 644ca57b6..ab6d23dae 100644
--- a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/ProvidersSection/components/ProvidersEdit.tsx
+++ b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/ProvidersSection/components/ProvidersEdit.tsx
@@ -1,9 +1,10 @@
import React, { ReactNode } from 'react';
import { DetailsItem } from 'src/modules/Providers/utils';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import { ProviderModelGroupVersionKind, V1beta1Provider } from '@kubev2v/types';
import { ResourceLink } from '@openshift-console/dynamic-plugin-sdk';
-import { Form, FormGroup, FormSelect, FormSelectOption } from '@patternfly/react-core';
+import { Form, FormSelect, FormSelectOption } from '@patternfly/react-core';
export const ProvidersEdit: React.FC = ({
providers,
@@ -24,7 +25,7 @@ export const ProvidersEdit: React.FC = ({
if (mode === 'edit') {
return (
);
} else {
diff --git a/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/Hooks/PlanHooks.tsx b/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/Hooks/PlanHooks.tsx
index f39edba6b..09b2daa4f 100644
--- a/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/Hooks/PlanHooks.tsx
+++ b/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/Hooks/PlanHooks.tsx
@@ -3,6 +3,7 @@ import { Base64 } from 'js-base64';
import SectionHeading from 'src/components/headers/SectionHeading';
import { useForkliftTranslation } from 'src/utils/i18n';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import { CodeEditor } from '@openshift-console/dynamic-plugin-sdk';
import {
Button,
@@ -10,7 +11,6 @@ import {
Flex,
FlexItem,
Form,
- FormGroup,
HelperText,
HelperTextItem,
PageSection,
@@ -107,7 +107,7 @@ export const PlanHooks: React.FC<{ name: string; namespace: string }> = ({ name,
@@ -156,7 +156,7 @@ export const PlanHooks: React.FC<{ name: string; namespace: string }> = ({ name,
diff --git a/packages/forklift-console-plugin/src/modules/Providers/modals/EditModal/EditModal.tsx b/packages/forklift-console-plugin/src/modules/Providers/modals/EditModal/EditModal.tsx
index 4c3691e9d..806723412 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/modals/EditModal/EditModal.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/modals/EditModal/EditModal.tsx
@@ -2,15 +2,8 @@ import React, { ReactNode, useCallback, useState } from 'react';
import { useHistory } from 'react-router-dom';
import { useForkliftTranslation } from 'src/utils/i18n';
-import {
- Button,
- Form,
- FormGroup,
- Modal,
- ModalVariant,
- Popover,
- TextInput,
-} from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, Form, Modal, ModalVariant, Popover, TextInput } from '@patternfly/react-core';
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
import { useToggle } from '../../hooks';
@@ -171,7 +164,7 @@ export const EditModal: React.FC = ({
{body}
{typeof owner === 'object' && }
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/EsxiProviderCreateForm.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/EsxiProviderCreateForm.tsx
index 4259691ac..9597407b3 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/EsxiProviderCreateForm.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/EsxiProviderCreateForm.tsx
@@ -2,9 +2,9 @@ import React, { useCallback, useReducer } from 'react';
import { validateEsxiURL, validateVDDKImage } from 'src/modules/Providers/utils';
import { ForkliftTrans, useForkliftTranslation } from 'src/utils/i18n';
-import { ExternalLink } from '@kubev2v/common';
+import { ExternalLink, FormGroupWithHelpText } from '@kubev2v/common';
import { V1beta1Provider } from '@kubev2v/types';
-import { Form, FormGroup, Popover, Radio, TextInput } from '@patternfly/react-core';
+import { Form, Popover, Radio, TextInput } from '@patternfly/react-core';
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
const CREATE_VDDK_HELP_LINK =
@@ -119,7 +119,7 @@ export const EsxiProviderCreateForm: React.FC = ({
return (
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OVAProviderCreateForm.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OVAProviderCreateForm.tsx
index 6792ba1e8..7b8e71f0d 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OVAProviderCreateForm.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OVAProviderCreateForm.tsx
@@ -2,8 +2,9 @@ import React, { useCallback, useReducer } from 'react';
import { validateOvaNfsPath } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import { V1beta1Provider } from '@kubev2v/types';
-import { Form, FormGroup, TextInput } from '@patternfly/react-core';
+import { Form, TextInput } from '@patternfly/react-core';
export interface OVAProviderCreateFormProps {
provider: V1beta1Provider;
@@ -58,7 +59,7 @@ export const OVAProviderCreateForm: React.FC = ({
return (
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OpenshiftProviderCreateForm.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OpenshiftProviderCreateForm.tsx
index 59ec44842..31281a9ca 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OpenshiftProviderCreateForm.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OpenshiftProviderCreateForm.tsx
@@ -2,8 +2,9 @@ import React, { useCallback, useReducer } from 'react';
import { validateOpenshiftURL } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import { V1beta1Provider } from '@kubev2v/types';
-import { Form, FormGroup, TextInput } from '@patternfly/react-core';
+import { Form, TextInput } from '@patternfly/react-core';
export interface OpenshiftProviderCreateFormProps {
provider: V1beta1Provider;
@@ -60,7 +61,7 @@ export const OpenshiftProviderFormCreate: React.FC
- handleChange('url', value)}
/>
-
+
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OpenstackProviderCreateForm.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OpenstackProviderCreateForm.tsx
index 56638b21f..6efd3eac1 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OpenstackProviderCreateForm.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OpenstackProviderCreateForm.tsx
@@ -2,8 +2,9 @@ import React, { useCallback, useReducer } from 'react';
import { validateOpenstackURL } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import { V1beta1Provider } from '@kubev2v/types';
-import { Form, FormGroup, TextInput } from '@patternfly/react-core';
+import { Form, TextInput } from '@patternfly/react-core';
export interface OpenstackProviderCreateFormProps {
provider: V1beta1Provider;
@@ -60,7 +61,7 @@ export const OpenstackProviderCreateForm: React.FC
- handleChange('url', value)}
/>
-
+
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OvirtProviderCreateForm.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OvirtProviderCreateForm.tsx
index 9ac293e79..a90f65622 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OvirtProviderCreateForm.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/OvirtProviderCreateForm.tsx
@@ -2,8 +2,9 @@ import React, { useCallback, useReducer } from 'react';
import { validateOvirtURL } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import { V1beta1Provider } from '@kubev2v/types';
-import { Form, FormGroup, TextInput } from '@patternfly/react-core';
+import { Form, TextInput } from '@patternfly/react-core';
export interface OvirtProviderCreateFormProps {
provider: V1beta1Provider;
@@ -60,7 +61,7 @@ export const OvirtProviderCreateForm: React.FC = (
return (
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/ProviderCreateForm.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/ProviderCreateForm.tsx
index e15dcb114..7acc4d37f 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/ProviderCreateForm.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/ProviderCreateForm.tsx
@@ -6,8 +6,9 @@ import { SelectableCard } from 'src/modules/Providers/utils/components/Galerry/S
import { SelectableGallery } from 'src/modules/Providers/utils/components/Galerry/SelectableGallery';
import { useForkliftTranslation } from 'src/utils/i18n';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import { IoK8sApiCoreV1Secret, ProviderType, V1beta1Provider } from '@kubev2v/types';
-import { Flex, FlexItem, Form, FormGroup, TextInput } from '@patternfly/react-core';
+import { Flex, FlexItem, Form, TextInput } from '@patternfly/react-core';
import { EditProvider } from './EditProvider';
import { EditProviderSectionHeading } from './EditProviderSectionHeading';
@@ -90,7 +91,7 @@ export const ProvidersCreateForm: React.FC = ({
{newProvider?.spec?.type && (
)}
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/VCenterProviderCreateForm.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/VCenterProviderCreateForm.tsx
index fc4501af2..ac01cc88b 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/create/components/VCenterProviderCreateForm.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/create/components/VCenterProviderCreateForm.tsx
@@ -2,9 +2,9 @@ import React, { useCallback, useReducer } from 'react';
import { validateVCenterURL, validateVDDKImage } from 'src/modules/Providers/utils';
import { ForkliftTrans, useForkliftTranslation } from 'src/utils/i18n';
-import { ExternalLink } from '@kubev2v/common';
+import { ExternalLink, FormGroupWithHelpText } from '@kubev2v/common';
import { V1beta1Provider } from '@kubev2v/types';
-import { Form, FormGroup, Popover, Radio, TextInput } from '@patternfly/react-core';
+import { Form, Popover, Radio, TextInput } from '@patternfly/react-core';
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
const CREATE_VDDK_HELP_LINK =
@@ -119,7 +119,7 @@ export const VCenterProviderCreateForm: React.FC
return (
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/EsxiCredentialsEdit.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/EsxiCredentialsEdit.tsx
index b12f2a5bf..f01138977 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/EsxiCredentialsEdit.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/EsxiCredentialsEdit.tsx
@@ -4,15 +4,8 @@ import { esxiSecretFieldValidator, safeBase64Decode } from 'src/modules/Provider
import { CertificateUpload } from 'src/modules/Providers/utils/components/CertificateUpload';
import { ForkliftTrans, useForkliftTranslation } from 'src/utils/i18n';
-import {
- Button,
- Divider,
- Form,
- FormGroup,
- Popover,
- Switch,
- TextInput,
-} from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, Divider, Form, Popover, Switch, TextInput } from '@patternfly/react-core';
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
@@ -102,7 +95,7 @@ export const EsxiCredentialsEdit: React.FC = ({ secret, onCh
return (
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenshiftCredentialsEdit.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenshiftCredentialsEdit.tsx
index abf5edeb5..082860129 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenshiftCredentialsEdit.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenshiftCredentialsEdit.tsx
@@ -4,15 +4,8 @@ import { openshiftSecretFieldValidator, safeBase64Decode } from 'src/modules/Pro
import { CertificateUpload } from 'src/modules/Providers/utils/components/CertificateUpload';
import { ForkliftTrans, useForkliftTranslation } from 'src/utils/i18n';
-import {
- Button,
- Divider,
- Form,
- FormGroup,
- Popover,
- Switch,
- TextInput,
-} from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, Divider, Form, Popover, Switch, TextInput } from '@patternfly/react-core';
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
@@ -102,7 +95,7 @@ export const OpenshiftCredentialsEdit: React.FC = ({ secret,
return (
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEdit.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEdit.tsx
index bdb41f1aa..4e0f0f132 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEdit.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEdit.tsx
@@ -4,7 +4,8 @@ import { openstackSecretFieldValidator, safeBase64Decode } from 'src/modules/Pro
import { CertificateUpload } from 'src/modules/Providers/utils/components/CertificateUpload';
import { ForkliftTrans, useForkliftTranslation } from 'src/utils/i18n';
-import { Divider, Form, FormGroup, Popover, Radio, Switch } from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Divider, Form, Popover, Radio, Switch } from '@patternfly/react-core';
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
import { EditComponentProps } from '../BaseCredentialsSection';
@@ -161,7 +162,7 @@ export const OpenstackCredentialsEdit: React.FC = ({ secret,
return (
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/ApplicationCredentialNameSecretFieldsFormGroup.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/ApplicationCredentialNameSecretFieldsFormGroup.tsx
index 4162d292f..2d3653e8f 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/ApplicationCredentialNameSecretFieldsFormGroup.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/ApplicationCredentialNameSecretFieldsFormGroup.tsx
@@ -3,7 +3,8 @@ import { Base64 } from 'js-base64';
import { openstackSecretFieldValidator, safeBase64Decode } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
-import { Button, FormGroup, TextInput } from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, TextInput } from '@patternfly/react-core';
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
@@ -77,7 +78,7 @@ export const ApplicationCredentialNameSecretFieldsFormGroup: React.FC
- handleChange('applicationCredentialName', value)}
validated={state.validation.applicationCredentialName.type}
/>
-
+
-
{state.passwordHidden ? : }
-
+
- handleChange('username', value)}
validated={state.validation.username.type}
/>
-
+
- handleChange('regionName', value)}
validated={state.validation.regionName.type}
/>
-
+
- handleChange('projectName', value)}
validated={state.validation.projectName.type}
/>
-
+
- handleChange('domainName', value)}
validated={state.validation.domainName.type}
/>
-
+
>
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/ApplicationWithCredentialsIDFormGroup.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/ApplicationWithCredentialsIDFormGroup.tsx
index e848f62cf..bf46f997c 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/ApplicationWithCredentialsIDFormGroup.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/ApplicationWithCredentialsIDFormGroup.tsx
@@ -3,7 +3,8 @@ import { Base64 } from 'js-base64';
import { openstackSecretFieldValidator, safeBase64Decode } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
-import { Button, FormGroup, TextInput } from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, TextInput } from '@patternfly/react-core';
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
@@ -73,7 +74,7 @@ export const ApplicationWithCredentialsIDFormGroup: React.FC
return (
<>
-
onChange={(value) => handleChange('applicationCredentialID', value)}
validated={state.validation.applicationCredentialID.type}
/>
-
+
-
>
{state.passwordHidden ? : }
-
+
-
onChange={(value) => handleChange('regionName', value)}
validated={state.validation.regionName.type}
/>
-
+
-
onChange={(value) => handleChange('projectName', value)}
validated={state.validation.projectName.type}
/>
-
+
>
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/PasswordSecretFieldsFormGroup.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/PasswordSecretFieldsFormGroup.tsx
index a5a104b1e..7dd0dfbfd 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/PasswordSecretFieldsFormGroup.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/PasswordSecretFieldsFormGroup.tsx
@@ -3,7 +3,8 @@ import { Base64 } from 'js-base64';
import { openstackSecretFieldValidator, safeBase64Decode } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
-import { Button, FormGroup, TextInput } from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, TextInput } from '@patternfly/react-core';
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
@@ -69,7 +70,7 @@ export const PasswordSecretFieldsFormGroup: React.FC = ({
return (
<>
- = ({
onChange={(value) => handleChange('username', value)}
validated={state.validation.username.type}
/>
-
+
- = ({
>
{state.passwordHidden ? : }
-
+
- = ({
onChange={(value) => handleChange('regionName', value)}
validated={state.validation.regionName.type}
/>
-
+
- = ({
onChange={(value) => handleChange('projectName', value)}
validated={state.validation.projectName.type}
/>
-
+
- = ({
onChange={(value) => handleChange('domainName', value)}
validated={state.validation.domainName.type}
/>
-
+
>
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/TokenWithUserIDSecretFieldsFormGroup.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/TokenWithUserIDSecretFieldsFormGroup.tsx
index b834dc669..b4fa7cd9e 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/TokenWithUserIDSecretFieldsFormGroup.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/TokenWithUserIDSecretFieldsFormGroup.tsx
@@ -3,7 +3,8 @@ import { Base64 } from 'js-base64';
import { openstackSecretFieldValidator, safeBase64Decode } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
-import { Button, FormGroup, TextInput } from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, TextInput } from '@patternfly/react-core';
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
@@ -66,7 +67,7 @@ export const TokenWithUserIDSecretFieldsFormGroup: React.FC
return (
<>
-
>
{state.passwordHidden ? : }
-
+
-
onChange={(value) => handleChange('userID', value)}
validated={state.validation.userID.type}
/>
-
+
-
onChange={(value) => handleChange('projectID', value)}
validated={state.validation.projectID.type}
/>
-
+
-
onChange={(value) => handleChange('regionName', value)}
validated={state.validation.regionName.type}
/>
-
+
>
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/TokenWithUsernameSecretFieldsFormGroup.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/TokenWithUsernameSecretFieldsFormGroup.tsx
index f4d53cfc5..3c64486cd 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/TokenWithUsernameSecretFieldsFormGroup.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OpenstackCredentialsEditFormGroups/TokenWithUsernameSecretFieldsFormGroup.tsx
@@ -3,7 +3,8 @@ import { Base64 } from 'js-base64';
import { openstackSecretFieldValidator, safeBase64Decode } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
-import { Button, FormGroup, TextInput } from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, TextInput } from '@patternfly/react-core';
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
@@ -68,7 +69,7 @@ export const TokenWithUsernameSecretFieldsFormGroup: React.FC
-
{state.passwordHidden ? : }
-
+
- handleChange('username', value)}
validated={state.validation.username.type}
/>
-
+
- handleChange('regionName', value)}
validated={state.validation.regionName.type}
/>
-
+
- handleChange('projectName', value)}
validated={state.validation.projectName.type}
/>
-
+
- handleChange('domainName', value)}
validated={state.validation.domainName.type}
/>
-
+
>
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OvirtCredentialsEdit.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OvirtCredentialsEdit.tsx
index 3ee874a2b..4c1994e3d 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OvirtCredentialsEdit.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/OvirtCredentialsEdit.tsx
@@ -4,15 +4,8 @@ import { ovirtSecretFieldValidator, safeBase64Decode } from 'src/modules/Provide
import { CertificateUpload } from 'src/modules/Providers/utils/components/CertificateUpload';
import { ForkliftTrans, useForkliftTranslation } from 'src/utils/i18n';
-import {
- Button,
- Divider,
- Form,
- FormGroup,
- Popover,
- Switch,
- TextInput,
-} from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, Divider, Form, Popover, Switch, TextInput } from '@patternfly/react-core';
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
@@ -108,7 +101,7 @@ export const OvirtCredentialsEdit: React.FC = ({ secret, onC
return (
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/VCenterCredentialsEdit.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/VCenterCredentialsEdit.tsx
index 788ec3eff..9980a9c2f 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/VCenterCredentialsEdit.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/edit/VCenterCredentialsEdit.tsx
@@ -4,15 +4,8 @@ import { safeBase64Decode, vcenterSecretFieldValidator } from 'src/modules/Provi
import { CertificateUpload } from 'src/modules/Providers/utils/components/CertificateUpload';
import { ForkliftTrans, useForkliftTranslation } from 'src/utils/i18n';
-import {
- Button,
- Divider,
- Form,
- FormGroup,
- Popover,
- Switch,
- TextInput,
-} from '@patternfly/react-core';
+import { FormGroupWithHelpText } from '@kubev2v/common';
+import { Button, Divider, Form, Popover, Switch, TextInput } from '@patternfly/react-core';
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
@@ -102,7 +95,7 @@ export const VCenterCredentialsEdit: React.FC = ({ secret, o
return (
);
};
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/modals/VSphereNetworkModal.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/modals/VSphereNetworkModal.tsx
index 667390e35..dc43b9d98 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/modals/VSphereNetworkModal.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/tabs/Hosts/modals/VSphereNetworkModal.tsx
@@ -3,11 +3,11 @@ import { AlertMessageForModals, useModal } from 'src/modules/Providers/modals';
import { validateNoSpaces } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import { NetworkAdapters, V1beta1Provider } from '@kubev2v/types';
import {
Button,
Form,
- FormGroup,
Modal,
ModalVariant,
Select,
@@ -202,7 +202,7 @@ export const VSphereNetworkModal: React.FC = ({
diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/migrate/components/PlansCreateForm.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/migrate/components/PlansCreateForm.tsx
index 71f4d7b76..b9a3dc81c 100644
--- a/packages/forklift-console-plugin/src/modules/Providers/views/migrate/components/PlansCreateForm.tsx
+++ b/packages/forklift-console-plugin/src/modules/Providers/views/migrate/components/PlansCreateForm.tsx
@@ -3,6 +3,7 @@ import SectionHeading from 'src/components/headers/SectionHeading';
import { useForkliftTranslation } from 'src/utils/i18n';
import { isProviderLocalOpenshift } from 'src/utils/resources';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import {
NetworkMapModelGroupVersionKind,
ProviderModelGroupVersionKind,
@@ -16,7 +17,6 @@ import {
DescriptionListGroup,
DescriptionListTerm,
Form,
- FormGroup,
FormSelect,
FormSelectOption,
TextInput,
@@ -158,7 +158,7 @@ export const PlansCreateForm = ({
>
{isNameEdited || validation.planName === 'error' ? (
) : (
-
-
+
) : (
-
-
+
) : (
= ({
providers,
@@ -33,7 +34,7 @@ export const MapsEdit: React.FC = ({
if (isEdit) {
return (
);
} else {
diff --git a/packages/forklift-console-plugin/src/modules/StorageMaps/views/details/components/ProvidersSection/components/ProvidersEdit.tsx b/packages/forklift-console-plugin/src/modules/StorageMaps/views/details/components/ProvidersSection/components/ProvidersEdit.tsx
index d88b7c78c..6960a5cc1 100644
--- a/packages/forklift-console-plugin/src/modules/StorageMaps/views/details/components/ProvidersSection/components/ProvidersEdit.tsx
+++ b/packages/forklift-console-plugin/src/modules/StorageMaps/views/details/components/ProvidersSection/components/ProvidersEdit.tsx
@@ -1,9 +1,10 @@
import React, { ReactNode } from 'react';
import { DetailsItem } from 'src/modules/Providers/utils';
+import { FormGroupWithHelpText } from '@kubev2v/common';
import { ProviderModelGroupVersionKind, V1beta1Provider } from '@kubev2v/types';
import { ResourceLink } from '@openshift-console/dynamic-plugin-sdk';
-import { Form, FormGroup, FormSelect, FormSelectOption } from '@patternfly/react-core';
+import { Form, FormSelect, FormSelectOption } from '@patternfly/react-core';
export const ProvidersEdit: React.FC = ({
providers,
@@ -32,7 +33,7 @@ export const ProvidersEdit: React.FC = ({
if (mode === 'edit') {
return (
);
} else {