Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
reprograma
Wallet Frontend
Commits
08c8d912
Unverified
Commit
08c8d912
authored
Mar 10, 2020
by
andreswebs
Browse files
fix routes
parent
eff4ef9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/components/Sidebar.jsx
View file @
08c8d912
...
...
@@ -239,6 +239,7 @@ class Sidebar extends React.Component {
const
caret
=
`
${
classes
.
caret
}
${
cx
({
[
classes
.
caretRTL
]:
rtlActive
})}
`
;
return
(
<
ListItem
key
=
{
prop
.
id
}
className
=
{
classes
.
item
}
>
<
NavLink
...
...
src/routes/MainRoutes.jsx
View file @
08c8d912
...
...
@@ -8,7 +8,6 @@ import {
import
LoginLayout
from
'
layouts/LoginLayout
'
;
import
DashboardLayout
from
'
layouts/DashboardLayout
'
;
import
{
isLoggedIn
}
from
'
utils
'
;
import
PrivateRoute
from
'
./PrivateRoute
'
;
...
...
@@ -17,7 +16,6 @@ const MainRoutes = () => (
<
Switch
>
<
Route
exact
path
=
"/login"
component
=
{
LoginLayout
}
/>
<
PrivateRoute
exact
path
=
"/dashboard"
authPath
=
"/login"
component
=
{
DashboardLayout
}
...
...
src/routes/dashboard-routes.js
View file @
08c8d912
...
...
@@ -8,14 +8,14 @@ import WalletIcon from '@material-ui/icons/AccountBalanceWallet';
const
dashboardRoutes
=
[
{
id
:
0
,
path
:
'
/dashboard
'
,
path
:
'
/dashboard
/metrics
'
,
name
:
'
Dashboard
'
,
icon
:
DashboardIcon
,
component
:
Dashboard
},
{
id
:
1
,
path
:
'
/wallet
'
,
path
:
'
/
dashboard/
wallet
'
,
name
:
'
Wallet
'
,
icon
:
WalletIcon
,
component
:
Wallet
...
...
@@ -23,9 +23,9 @@ const dashboardRoutes = [
{
id
:
2
,
redirect
:
true
,
path
:
'
/
'
,
pathTo
:
'
/dashboard
'
,
name
:
'
Dashboard
'
path
:
'
/
dashboard
'
,
pathTo
:
'
/dashboard
/metrics
'
,
name
:
'
Dashboard
Redirect
'
}
];
...
...
Write
Preview
Supports
Markdown
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