Skip to content

Commit 5e5133e

Browse files
Change file names
1 parent ecf9182 commit 5e5133e

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

app/javascript/components/provision-entry-point/index.jsx renamed to app/javascript/components/embedded-entry-point/index.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Close16, TreeViewAlt16 } from '@carbon/icons-react';
55
import { useFieldApi } from '@@ddf';
66
import WorkflowEntryPoints from '../workflows/workflow-entry-points';
77

8-
const ProvisionEntryPoint = (props) => {
8+
const EmbeddedEntryPoint = (props) => {
99
console.log(props);
1010
const {
1111
label, initialValue, id, field, selected, type,
@@ -70,7 +70,8 @@ const ProvisionEntryPoint = (props) => {
7070
</div>
7171
);
7272
};
73-
ProvisionEntryPoint.propTypes = {
73+
74+
EmbeddedEntryPoint.propTypes = {
7475
id: PropTypes.string.isRequired,
7576
label: PropTypes.string.isRequired,
7677
initialValue: PropTypes.string,
@@ -79,9 +80,9 @@ ProvisionEntryPoint.propTypes = {
7980
type: PropTypes.string.isRequired,
8081
};
8182

82-
ProvisionEntryPoint.defaultProps = {
83+
EmbeddedEntryPoint.defaultProps = {
8384
initialValue: '',
8485
selected: '',
8586
};
8687

87-
export default ProvisionEntryPoint;
88+
export default EmbeddedEntryPoint;

app/javascript/forms/mappers/componentMapper.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ import { TreeViewField, TreeViewSelector } from '../../components/tree-view';
1111
import MultiSelectWithSelectAll from '../../components/multiselect-with-selectall';
1212
import FontIconPicker from '../../components/fonticon-picker';
1313
import FontIconPickerDdf from '../../components/fonticon-picker/font-icon-picker-ddf';
14-
import ProvisionEntryPoint from '../../components/provision-entry-point';
14+
import EmbeddedEntryPoint from '../../components/embedded-entry-point';
1515

1616
const mapper = {
1717
...componentMapper,
1818
'code-editor': CodeEditor,
1919
'edit-password-field': EditPasswordField,
2020
'file-upload': FileUploadComponent,
2121
'password-field': PasswordField,
22-
'provision-entry-point': ProvisionEntryPoint,
22+
'provision-entry-point': EmbeddedEntryPoint,
2323
'validate-credentials': AsyncCredentials,
2424
'tree-view': TreeViewField,
2525
'tree-selector': TreeViewSelector,

app/javascript/spec/provision-entry-point/provision-entry-point.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { shallow } from 'enzyme';
33
import { shallowToJson } from 'enzyme-to-json';
44

5-
import ProvisionEntryPoint from '../../components/provision-entry-point';
5+
import EmbeddedEntryPoint from '../../components/embedded-entry-point';
66

77
jest.mock('@@ddf', () => ({
88
useFieldApi: (props) => ({ meta: {}, input: {}, ...props }),
@@ -22,7 +22,7 @@ describe('CodeEditor component', () => {
2222
});
2323

2424
it('should render correctly', () => {
25-
const wrapper = shallow(<ProvisionEntryPoint {...initialProps} />);
25+
const wrapper = shallow(<EmbeddedEntryPoint {...initialProps} />);
2626
expect(shallowToJson(wrapper)).toMatchSnapshot();
2727
});
2828
});

0 commit comments

Comments
 (0)