mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	use hashHistory
This commit is contained in:
		
							parent
							
								
									60d4426272
								
							
						
					
					
						commit
						a4d013c9eb
					
				@ -1,5 +1,5 @@
 | 
				
			|||||||
import { connect } from 'react-redux';
 | 
					import { connect } from 'react-redux';
 | 
				
			||||||
import { browserHistory } from 'react-router';
 | 
					import { hashHistory } from 'react-router';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { createFeatureToggles } from '../../store/feature-actions';
 | 
					import { createFeatureToggles } from '../../store/feature-actions';
 | 
				
			||||||
@ -21,7 +21,7 @@ const prepare = (methods, dispatch) => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    methods.onCancel = (evt) => {
 | 
					    methods.onCancel = (evt) => {
 | 
				
			||||||
        evt.preventDefault();
 | 
					        evt.preventDefault();
 | 
				
			||||||
        browserHistory.push('/features');
 | 
					        hashHistory.push('/features');
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    methods.addStrategy = (v) => {
 | 
					    methods.addStrategy = (v) => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user