Skip to content
Permalink
Browse files

Overriding unused select action route

  • Loading branch information...
ryanml committed Jun 28, 2019
1 parent c007a26 commit 97bee2dff14580263e3477e74ab6cc41e23758a7
Showing with 17 additions and 0 deletions.
  1. +12 −0 brave/gulpfile.js/brave-replace-paths.js
  2. +5 −0 brave/ui/app/helpers/constants/routes.js
@@ -109,6 +109,18 @@ const createBraveReplacePathsTask = () => {
`'${bravePrefix}ui/app/pages/first-time-flow/welcome/welcome.component'`
)
)
.pipe(
replace(
/'(.*)\/select-action\.component'/gm,
`'${bravePrefix}ui/app/pages/first-time-flow/welcome/welcome.component'`
)
)
.pipe(
replace(
/'(.*)\/constants\/routes'/gm,
`'${bravePrefix}ui/app/helpers/constants/routes'`
)
)
.pipe(gulp.dest(file => file.base))
})
}
@@ -0,0 +1,5 @@
const Routes = require('../../../../../ui/app/helpers/constants/routes')

Routes.INITIALIZE_SELECT_ACTION_ROUTE = Routes.INITIALIZE_WELCOME_ROUTE

module.exports = Routes

0 comments on commit 97bee2d

Please sign in to comment.
You can’t perform that action at this time.