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 81 82 83 84 85 86
| // @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";
import {injectIntl} from 'react-intl';
const dashboardRoutes = [
{
path: "/dashboard/dashboard",
sidebarName: "Dashboard",
navbarName: this.props.intl.formatMessage({id:'loginTemplate.email.error', defaultMessage:'Email'}),
icon: Dashboard,
component: DashboardPage
},
{
path: "/dashboard/user",
sidebarName: "User Profile",
navbarName: "Profile",
icon: Person,
component: UserProfile
},
{
path: "/dashboard/table",
sidebarName: "Table List",
navbarName: "Table List",
icon: "content_paste",
component: TableList
},
{
path: "/dashboard/typography",
sidebarName: "Typography",
navbarName: "Typography",
icon: LibraryBooks,
component: Typography
},
{
path: "/dashboard/icons",
sidebarName: "Icons",
navbarName: "Icons",
icon: BubbleChart,
component: Icons
},
{
path: "/dashboard/maps",
sidebarName: "Maps",
navbarName: "Map",
icon: LocationOn,
component: Maps
},
{
path: "/dashboard/notifications",
sidebarName: "Notifications",
navbarName: "Notifications",
icon: Notifications,
component: NotificationsPage
},
{
path: "/dashboard/upgrade-to-pro",
sidebarName: "Upgrade To PRO",
navbarName: "Upgrade To PRO",
icon: Unarchive,
component: UpgradeToPro
},
{
redirect: true,
path: "/dashboard",
to: "/dashboard/dashboard",
navbarName: "Redirect" }
];
export default injectIntl(dashboardRoutes); |
Partager