mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-22 01:16:07 +02:00
use hashHistory
This commit is contained in:
parent
223d0a1421
commit
a22b584615
@ -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