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:
parent
03294bb25e
commit
a779d830bd
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue