Skip to content

Commit

Permalink
Replace deprecated props.url in examples (vercel#4953)
Browse files Browse the repository at this point in the history
Following vercel#4952

I found two examples with the deprecated`props.url` :
- `with-ioc`
- `with-next-routes`
  • Loading branch information
lucleray authored and timneutkens committed Aug 13, 2018
1 parent cf5dd4a commit b9081a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/with-ioc/pages/about.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default props => <h1>About foo {props.url.query.foo} – no `Link` ({typeof props.Link}) available here</h1>
export default props => <h1>About foo – no `Link` ({typeof props.Link}) available here</h1>
6 changes: 5 additions & 1 deletion examples/with-next-routes/pages/about.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default props => <h1>About foo {props.url.query.foo}</h1>
import { withRouter } from 'next/router'

const About = ({router}) => <h1>About foo {router.query.foo}</h1>

export default withRouter(About)

0 comments on commit b9081a5

Please sign in to comment.