Skip to content

Commit

Permalink
rename parent -> parentRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
farwayer committed Jul 1, 2019
1 parent 0ec6c71 commit 2aa8edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ function addRoutes(nested, routerProps, parentRoute, routes = {}) {
* Create route.
*/

function createRoute(path, parent, render) {
path = cleanPath(normalizePath(path, parent))
function createRoute(path, parentRoute, render) {
path = cleanPath(normalizePath(path, parentRoute))

const route = {path, render, params: []}
route.regexp = pathToRegexp(path, route.params)
Expand Down

0 comments on commit 2aa8edf

Please sign in to comment.