mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	more naming
This commit is contained in:
		
							parent
							
								
									c3ae07096d
								
							
						
					
					
						commit
						0170d77168
					
				| @ -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); | ||||
| @ -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); | ||||
| @ -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> | ||||
| ); | ||||
| 
 | ||||
|  | ||||
| @ -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> | ||||
|         ); | ||||
|     } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user