Commit a779d830 authored by Brikou CARRE's avatar Brikou CARRE Committed by Tim Neutkens

Rename withRoute to withRouter to be consistent (#2881)

parent 03294bb2
...@@ -3,7 +3,7 @@ import PropTypes from 'prop-types' ...@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import hoistStatics from 'hoist-non-react-statics' import hoistStatics from 'hoist-non-react-statics'
import { getDisplayName } from '../utils' import { getDisplayName } from '../utils'
export default function withRoute (ComposedComponent) { export default function withRouter (ComposedComponent) {
const displayName = getDisplayName(ComposedComponent) const displayName = getDisplayName(ComposedComponent)
class WithRouteWrapper extends Component { class WithRouteWrapper extends Component {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment