Unverified Commit 08c8d912 authored by andreswebs's avatar andreswebs
Browse files

fix routes

parent eff4ef9c
......@@ -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
......
......@@ -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}
......
......@@ -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'
}
];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment