diff --git a/__tests__/.eslintrc b/__tests__/.eslintrc new file mode 100644 index 0000000000..6d45c889cf --- /dev/null +++ b/__tests__/.eslintrc @@ -0,0 +1,5 @@ +{ + "rules": { + "react/jsx-pascal-case": "ignore" + } +} diff --git a/__tests__/pages/Organizations/screens/Organization/OrganizationEdit.test.jsx b/__tests__/pages/Organizations/screens/Organization/OrganizationEdit.test.jsx index f67dc8780d..3351dd8095 100644 --- a/__tests__/pages/Organizations/screens/Organization/OrganizationEdit.test.jsx +++ b/__tests__/pages/Organizations/screens/Organization/OrganizationEdit.test.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { mount } from 'enzyme'; import { MemoryRouter } from 'react-router-dom'; import { I18nProvider } from '@lingui/react'; -import OrganizationEdit, { OrganizationEditNoRouter } from '../../../../../src/pages/Organizations/screens/Organization/OrganizationEdit'; +import OrganizationEdit, { _OrganizationEdit } from '../../../../../src/pages/Organizations/screens/Organization/OrganizationEdit'; const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); @@ -94,7 +94,7 @@ describe('', () => { const wrapper = mount( - new Promise(resolve => setTimeout(resolve, ms)); @@ -47,7 +47,7 @@ describe('', () => { const wrapper = mount( - @@ -68,7 +68,7 @@ describe('', () => { const wrapper = mount( - @@ -103,7 +103,7 @@ describe('', () => { const wrapper = mount( - diff --git a/src/components/FormRow.jsx b/src/components/FormRow.jsx new file mode 100644 index 0000000000..d7e6c0cd11 --- /dev/null +++ b/src/components/FormRow.jsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export default function FormRow ({ children }) { + return ( +
+ {children} +
+ ); +} diff --git a/src/pages/Organizations/components/OrganizationForm.jsx b/src/pages/Organizations/components/OrganizationForm.jsx index a197982e43..eb3bfe005c 100644 --- a/src/pages/Organizations/components/OrganizationForm.jsx +++ b/src/pages/Organizations/components/OrganizationForm.jsx @@ -10,6 +10,7 @@ import { } from '@patternfly/react-core'; import { ConfigContext } from '../../../context'; +import FormRow from '../../../components/FormRow'; import FormField from '../../../components/FormField'; import FormActionGroup from '../../../components/FormActionGroup'; import AnsibleSelect from '../../../components/AnsibleSelect'; @@ -96,13 +97,7 @@ class OrganizationForm extends Component { onSubmit={this.handleSubmit} render={formik => (
-
+ -
+