Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hive
wallet
Commits
c50f8936
Commit
c50f8936
authored
Aug 23, 2019
by
/ /\ / /\/
Browse files
walk back lint changes to resolve route
parent
8021cd99
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/ResolveRoute.js
View file @
c50f8936
import
GDPRUserList
from
'
./utils/GDPRUserList
'
;
export
const
routeRegex
=
{
UserProfile1
:
/^
\/(
@
[\w
.
\d
-
]
+
)\/?
$/
,
UserProfile2
:
/^
\/(
@
[\w
.
\d
-
]
+
)\/(
transfers|curation-rewards|author-rewards|permissions|communities|password|settings
)\/?
$/
,
UserProfile1
:
/^
\/(
@
[\w
\
.\d
-
]
+
)\/?
$/
,
UserProfile2
:
/^
\/(
@
[\w
\
.\d
-
]
+
)\/(
transfers|curation-rewards|author-rewards|permissions|communities|password|settings
)\/?
$/
,
};
export
default
function
resolveRoute
(
path
)
{
let
match
;
if
(
path
===
'
/
'
)
{
return
{
page
:
'
WalletIndex
'
};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment