1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

more naming

This commit is contained in:
ivaosthu 2016-10-26 12:39:10 +02:00 committed by Ivar Conradi Østhus
parent c3ae07096d
commit 0170d77168
5 changed files with 8 additions and 10 deletions

View File

@ -1,10 +1,8 @@
import { connect } from 'react-redux';
import { hashHistory } from 'react-router';
import { createFeatureToggles } from '../../store/feature-actions';
import AddComponent from './form/add-component';
import { createMapper, createActions } from '../input-helpers';
import FormComponent from './form';
const ID = 'add-feature-toggle';
const mapStateToProps = createMapper({ id: ID });
@ -40,4 +38,4 @@ const prepare = (methods, dispatch) => {
};
const actions = createActions({ id: ID, prepare });
export default connect(mapStateToProps, actions)(AddComponent);
export default connect(mapStateToProps, actions)(FormComponent);

View File

@ -2,8 +2,8 @@ import { connect } from 'react-redux';
import { hashHistory } from 'react-router';
import { requestUpdateFeatureToggle } from '../../store/feature-actions';
import AddComponent from './form/add-component';
import { createMapper, createActions } from '../input-helpers';
import FormComponent from './form';
const ID = 'edit-feature-toggle';
function getId (props) {
@ -65,4 +65,4 @@ const actions = createActions({
prepare,
});
export default connect(mapStateToProps, actions)(AddComponent);
export default connect(mapStateToProps, actions)(FormComponent);

View File

@ -1,10 +1,10 @@
import React from 'react';
import AddFeatureToggle from '../../component/feature/add-container';
import AddFeatureToggleForm from '../../component/feature/form-add-container';
const render = () => (
<div>
<h3>Create feature toggle</h3>
<AddFeatureToggle />
<AddFeatureToggleForm />
</div>
);

View File

@ -1,5 +1,5 @@
import React, { Component, PropTypes } from 'react';
import EditFeatureToggle from '../../component/feature/edit-container';
import EditFeatureToggleForm from '../../component/feature/form-edit-container';
export default class Features extends Component {
static propTypes () {
@ -12,7 +12,7 @@ export default class Features extends Component {
return (
<div>
<h3>Edit feature toggle</h3>
<EditFeatureToggle featureToggleName={this.props.params.name} />
<EditFeatureToggleForm featureToggleName={this.props.params.name} />
</div>
);
}