Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2496 | Rev 2508 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
2482 stevensc 1
import React, { useState } from 'react'
2
import { Collapse, List, ListItemButton, ListItemText } from '@mui/material'
3
import { ExpandLess, ExpandMore } from '@mui/icons-material'
4
 
5
import Widget from '@app/components/UI/Widget'
2496 stevensc 6
import { Link } from 'react-router-dom'
2482 stevensc 7
 
8
export default function HabitsMenu() {
9
  const [open, setOpen] = useState(true)
10
 
11
  const handleClick = () => setOpen(!open)
12
 
13
  return (
14
    <Widget>
15
      <List>
16
        <ListItemButton onClick={handleClick}>
17
          <ListItemText primary='Propósito' />
18
          {open ? <ExpandLess /> : <ExpandMore />}
19
        </ListItemButton>
20
 
21
        <Collapse in={open} timeout='auto' unmountOnExit>
22
          <List disablePadding>
2497 stevensc 23
            <ListItemButton sx={{ pl: 4 }} LinkComponent={Link} to='paradigms'>
2482 stevensc 24
              <ListItemText primary='Paradigmas' />
25
            </ListItemButton>
2497 stevensc 26
            <ListItemButton sx={{ pl: 4 }} LinkComponent={Link} to='values'>
2482 stevensc 27
              <ListItemText primary='Valores' />
28
            </ListItemButton>
2497 stevensc 29
            <ListItemButton sx={{ pl: 4 }} LinkComponent={Link} to='purpose'>
2482 stevensc 30
              <ListItemText primary='Propósito' />
31
            </ListItemButton>
32
          </List>
33
        </Collapse>
34
 
2497 stevensc 35
        <ListItemButton LinkComponent={Link} to='goals'>
2482 stevensc 36
          <ListItemText primary='Metas' />
37
        </ListItemButton>
38
      </List>
39
    </Widget>
40
  )
41
}