|
@@ -2,6 +2,7 @@ import React, { Component } from 'react'
|
|
|
import Drawer from 'material-ui/Drawer'
|
|
|
import ListSubheader from 'material-ui/List/ListSubheader'
|
|
|
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List'
|
|
|
+import { Link } from 'react-router-dom'
|
|
|
import FactoryIcon from '../icons/FactoryIcon'
|
|
|
import TaskIcon from '../icons/TaskIcon'
|
|
|
import DockerIcon from '../icons/DockerIcon'
|
|
@@ -10,6 +11,7 @@ import PermissionIcon from '../icons/PermissionIcon'
|
|
|
import AboutIcon from '../icons/AboutIcon'
|
|
|
import { withStyles } from 'material-ui/styles'
|
|
|
|
|
|
+
|
|
|
const drawerWidth = 265
|
|
|
|
|
|
const styles = theme => ({
|
|
@@ -29,39 +31,39 @@ class Sidebar extends Component {
|
|
|
<div className={classes.toolbar} />
|
|
|
<List component="nav">
|
|
|
<ListSubheader>Sistemas</ListSubheader>
|
|
|
- <ListItem button>
|
|
|
+ <ListItem button component={Link} to='/containers'>
|
|
|
<ListItemIcon>
|
|
|
<DockerIcon />
|
|
|
</ListItemIcon>
|
|
|
<ListItemText primary="Contenedores" />
|
|
|
</ListItem>
|
|
|
- <ListItem button>
|
|
|
+ <ListItem button component={Link} to='/mytasks'>
|
|
|
<ListItemIcon>
|
|
|
<TaskIcon />
|
|
|
</ListItemIcon>
|
|
|
<ListItemText primary="Mis tareas" />
|
|
|
</ListItem>
|
|
|
- <ListItem button>
|
|
|
+ <ListItem button component={Link} to='/tasks'>
|
|
|
<ListItemIcon>
|
|
|
<FactoryIcon />
|
|
|
</ListItemIcon>
|
|
|
<ListItemText primary="Tareas automatizadas" />
|
|
|
</ListItem>
|
|
|
<ListSubheader>Administración</ListSubheader>
|
|
|
- <ListItem button>
|
|
|
+ <ListItem button component={Link} to='/users'>
|
|
|
<ListItemIcon>
|
|
|
<UserIcon />
|
|
|
</ListItemIcon>
|
|
|
<ListItemText primary="Usuarios" />
|
|
|
</ListItem>
|
|
|
- <ListItem button>
|
|
|
+ <ListItem button component={Link} to='/permissions'>
|
|
|
<ListItemIcon>
|
|
|
<PermissionIcon />
|
|
|
</ListItemIcon>
|
|
|
<ListItemText primary="Permisos" />
|
|
|
</ListItem>
|
|
|
<ListSubheader>Ayuda</ListSubheader>
|
|
|
- <ListItem button>
|
|
|
+ <ListItem button component={Link} to='/about'>
|
|
|
<ListItemIcon>
|
|
|
<AboutIcon />
|
|
|
</ListItemIcon>
|