1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
| // @material-ui/icons
import Dashboard from "@material-ui/icons/Dashboard";
import Person from "@material-ui/icons/Person";
// import ContentPaste from "@material-ui/icons/ContentPaste";
import LibraryBooks from "@material-ui/icons/LibraryBooks";
import BubbleChart from "@material-ui/icons/BubbleChart";
import LocationOn from "@material-ui/icons/LocationOn";
import Notifications from "@material-ui/icons/Notifications";
import Unarchive from "@material-ui/icons/Unarchive";
// core components/views
import DashboardPage from "views/Dashboard/Dashboard.jsx";
import UserProfile from "views/UserProfile/UserProfile.jsx";
import TableList from "views/TableList/TableList.jsx";
import Typography from "views/Typography/Typography.jsx";
import Icons from "views/Icons/Icons.jsx";
import Maps from "views/Maps/Maps.jsx";
import NotificationsPage from "views/Notifications/Notifications.jsx";
import UpgradeToPro from "views/UpgradeToPro/UpgradeToPro.jsx";
const dashboardRoutes = [
{
path: "/dashboard",
sidebarName: "Dashboard",
navbarName: "Material Dashboard",
icon: Dashboard,
component: DashboardPage
},
{
path: "/user",
sidebarName: "User Profile",
navbarName: "Profile",
icon: Person,
component: UserProfile
},
{
path: "/table",
sidebarName: "Table List",
navbarName: "Table List",
icon: "content_paste",
component: TableList
},
{
path: "/typography",
sidebarName: "Typography",
navbarName: "Typography",
icon: LibraryBooks,
component: Typography
},
{
path: "/icons",
sidebarName: "Icons",
navbarName: "Icons",
icon: BubbleChart,
component: Icons
},
{
path: "/maps",
sidebarName: "Maps",
navbarName: "Map",
icon: LocationOn,
component: Maps
},
{
path: "/notifications",
sidebarName: "Notifications",
navbarName: "Notifications",
icon: Notifications,
component: NotificationsPage
},
{
path: "/upgrade-to-pro",
sidebarName: "Upgrade To PRO",
navbarName: "Upgrade To PRO",
icon: Unarchive,
component: UpgradeToPro
}
//{ redirect: true, path: "/", to: "/dashboard", navbarName: "Redirect" } : Poser problème pour la redirection après la connexion
];
export default dashboardRoutes; |
Partager