From da1a19ce88f4d8e76632fc271f150f9704441ef5 Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 18 May 2020 15:06:20 -0400 Subject: [PATCH] Fixes pathing after aliases removed --- .../screens/Credential/shared/CredentialForm.test.jsx | 2 +- .../CredentialSubForms/GoogleComputeEngineSubForm.jsx | 9 ++++++--- .../Credential/shared/CredentialSubForms/index.js | 4 +--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/awx/ui_next/src/screens/Credential/shared/CredentialForm.test.jsx b/awx/ui_next/src/screens/Credential/shared/CredentialForm.test.jsx index 5ff5980048..c77089b758 100644 --- a/awx/ui_next/src/screens/Credential/shared/CredentialForm.test.jsx +++ b/awx/ui_next/src/screens/Credential/shared/CredentialForm.test.jsx @@ -7,7 +7,7 @@ import scmCredential from './data.scmCredential.json'; import credentialTypes from './data.credentialTypes.json'; import CredentialForm from './CredentialForm'; -jest.mock('@api'); +jest.mock('../../../api'); describe('', () => { let wrapper; diff --git a/awx/ui_next/src/screens/Credential/shared/CredentialSubForms/GoogleComputeEngineSubForm.jsx b/awx/ui_next/src/screens/Credential/shared/CredentialSubForms/GoogleComputeEngineSubForm.jsx index d1050b9375..89584b956c 100644 --- a/awx/ui_next/src/screens/Credential/shared/CredentialSubForms/GoogleComputeEngineSubForm.jsx +++ b/awx/ui_next/src/screens/Credential/shared/CredentialSubForms/GoogleComputeEngineSubForm.jsx @@ -3,9 +3,12 @@ import { withI18n } from '@lingui/react'; import { t } from '@lingui/macro'; import { useField } from 'formik'; import { FileUpload, FormGroup } from '@patternfly/react-core'; -import FormField from '@components/FormField'; -import { FormColumnLayout, FormFullWidthLayout } from '@components/FormLayout'; -import { required } from '@util/validators'; +import FormField from '../../../../components/FormField'; +import { + FormColumnLayout, + FormFullWidthLayout, +} from '../../../../components/FormLayout'; +import { required } from '../../../../util/validators'; const GoogleComputeEngineSubForm = ({ i18n }) => { const [fileError, setFileError] = useState(null); diff --git a/awx/ui_next/src/screens/Credential/shared/CredentialSubForms/index.js b/awx/ui_next/src/screens/Credential/shared/CredentialSubForms/index.js index 8c6d7d19f4..fcd719a65d 100644 --- a/awx/ui_next/src/screens/Credential/shared/CredentialSubForms/index.js +++ b/awx/ui_next/src/screens/Credential/shared/CredentialSubForms/index.js @@ -1,5 +1,3 @@ -export { - default as GoogleComputeEngineSubForm, -} from './GoogleComputeEngineSubForm'; +export { default as GoogleComputeEngineSubForm } from './GoogleComputeEngineSubForm'; export { default as ManualSubForm } from './ManualSubForm'; export { default as SourceControlSubForm } from './SourceControlSubForm';