diff --git a/modules/st2-router/history.js b/modules/st2-router/history.js index 32429d0a2..4a624b82a 100644 --- a/modules/st2-router/history.js +++ b/modules/st2-router/history.js @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import createHashHistory from 'history/createHashHistory'; +import { createHashHistory } from 'history'; const history = createHashHistory({}); diff --git a/modules/st2-router/route.component.js b/modules/st2-router/route.component.js index ec0b1bdac..461c102e5 100644 --- a/modules/st2-router/route.component.js +++ b/modules/st2-router/route.component.js @@ -16,7 +16,7 @@ import React from 'react'; import { PropTypes } from 'prop-types'; import { connect } from 'react-redux'; -import matchPath from 'react-router/matchPath'; +import { matchPath } from 'react-router'; @connect( ({ location }) => ({ location })