Skip to content

Commit

Permalink
fix: update routes for instant lending
Browse files Browse the repository at this point in the history
  • Loading branch information
mcstover committed Nov 16, 2021
1 parent 5be065a commit f658b48
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ export default [
result: route.params.result,
})
},
{
path: '/instant-lending-error',
component: () => import('@/pages/InstantActions/InstantLendingError')
},
{ path: '/join-team', component: () => import('@/pages/LoginAndRegister/JoinTeam') },
{
path: '/legal',
Expand Down Expand Up @@ -208,19 +212,13 @@ export default [
},
{ path: '/process-browser-auth', component: () => import('@/pages/ProcessBrowserAuth') },
{
path: '/process-instant-lending/:token/:loanId/:lendAmount',
path: '/process-instant-lending/:loanId/:lendAmount',
component: () => import('@/pages/InstantActions/ProcessInstantLending'),
props: route => ({
token: route.params.token,
loanId: Number(route.params.loanId),
lendAmount: Number(route.params.lendAmount)
}),
},
{
path: '/process-instant-lending-error/:errorType',
component: () => import('@/pages/InstantActions/ProcessInstantLending'),
props: route => ({ errorType: route.params.errorType })
},
{ path: '/protocol', component: () => import('@/pages/Protocol') },
{ path: '/register/social', component: () => import('@/pages/LoginAndRegister/RegisterSocial') },
{ path: '/register/guest', component: () => import('@/pages/LoginAndRegister/GuestAccountClaim') },
Expand Down

0 comments on commit f658b48

Please sign in to comment.