From 9627a73978a71b553097a18e89e897c4540759be Mon Sep 17 00:00:00 2001 From: kialam Date: Tue, 11 Dec 2018 16:42:24 -0500 Subject: [PATCH] Rename AnsibleEnvironmentSelect to AnsibleSelect - Update references to the component. --- ...nsibleEnvironmentSelect.test.jsx => AnsibleSelect.test.jsx} | 2 +- src/components/AnsibleEnvironmentSelect/index.js | 3 --- .../AnsibleSelect.jsx} | 0 src/components/AnsibleSelect/index.js | 3 +++ src/pages/Organizations/views/Organization.add.jsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename __tests__/components/{AnsibleEnvironmentSelect.test.jsx => AnsibleSelect.test.jsx} (90%) delete mode 100644 src/components/AnsibleEnvironmentSelect/index.js rename src/components/{AnsibleEnvironmentSelect/AnsibleEnvironmentSelect.jsx => AnsibleSelect/AnsibleSelect.jsx} (100%) create mode 100644 src/components/AnsibleSelect/index.js diff --git a/__tests__/components/AnsibleEnvironmentSelect.test.jsx b/__tests__/components/AnsibleSelect.test.jsx similarity index 90% rename from __tests__/components/AnsibleEnvironmentSelect.test.jsx rename to __tests__/components/AnsibleSelect.test.jsx index 0bcf9d3ded..47a068ef4f 100644 --- a/__tests__/components/AnsibleEnvironmentSelect.test.jsx +++ b/__tests__/components/AnsibleSelect.test.jsx @@ -1,6 +1,6 @@ import React from 'react'; import { mount } from 'enzyme'; -import AnsibleSelect from '../../src/components/AnsibleEnvironmentSelect'; +import AnsibleSelect from '../../src/components/AnsibleSelect'; const mockData = ['foo', 'bar']; describe('', () => { diff --git a/src/components/AnsibleEnvironmentSelect/index.js b/src/components/AnsibleEnvironmentSelect/index.js deleted file mode 100644 index 1f2327e390..0000000000 --- a/src/components/AnsibleEnvironmentSelect/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import AnsibleSelect from './AnsibleEnvironmentSelect'; - -export default AnsibleSelect; diff --git a/src/components/AnsibleEnvironmentSelect/AnsibleEnvironmentSelect.jsx b/src/components/AnsibleSelect/AnsibleSelect.jsx similarity index 100% rename from src/components/AnsibleEnvironmentSelect/AnsibleEnvironmentSelect.jsx rename to src/components/AnsibleSelect/AnsibleSelect.jsx diff --git a/src/components/AnsibleSelect/index.js b/src/components/AnsibleSelect/index.js new file mode 100644 index 0000000000..219abcfefd --- /dev/null +++ b/src/components/AnsibleSelect/index.js @@ -0,0 +1,3 @@ +import AnsibleSelect from './AnsibleSelect'; + +export default AnsibleSelect; diff --git a/src/pages/Organizations/views/Organization.add.jsx b/src/pages/Organizations/views/Organization.add.jsx index 3e03511a77..a95f69831b 100644 --- a/src/pages/Organizations/views/Organization.add.jsx +++ b/src/pages/Organizations/views/Organization.add.jsx @@ -17,7 +17,7 @@ import { import { API_ORGANIZATIONS, API_CONFIG } from '../../../endpoints'; import api from '../../../api'; -import AnsibleSelect from '../../../components/AnsibleEnvironmentSelect' +import AnsibleSelect from '../../../components/AnsibleSelect' const { light } = PageSectionVariants; class OrganizationAdd extends React.Component {