1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Rename withRoute to withRouter to be consistent (#2881)

This commit is contained in:
Brikou CARRE 2017-08-31 21:37:20 +02:00 committed by Tim Neutkens
parent 03294bb25e
commit a779d830bd

View file

@ -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 {