Fix failing codemod test url-to-withrouter
(#42109)
This test was failing when running ``` cd ./packages/next-codemod pnpm build pnpm test ```
This commit is contained in:
parent
676be08d32
commit
d651e2799a
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
import { withRouter } from "next/router";
|
||||
|
||||
export default withRouter(class extends React.Component {
|
||||
export default withRouter((class extends React.Component {
|
||||
render() {
|
||||
const test = this.props.router
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue