Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3719 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3719 Rev 3736
Línea 3... Línea 3...
3
import {
3
import {
4
  Avatar,
4
  Avatar,
5
  ListItem as MuiListItem,
5
  ListItem as MuiListItem,
6
  ListItemAvatar,
6
  ListItemAvatar,
7
  ListItemButton,
7
  ListItemButton,
8
  ListItemSecondaryAction,
-
 
9
  ListItemText
8
  ListItemText
10
} from '@mui/material';
9
} from '@mui/material';
Línea 11... Línea 10...
11
 
10
 
12
export const ListItem = ({ image, title, subtitle, url, onClick, renderAction }) => {
11
export const ListItem = ({ image, title, subtitle, url, onClick, renderAction }) => {
13
  return (
12
  return (
14
    <MuiListItem disablePadding disableRipple>
13
    <MuiListItem disablePadding disableRipple secondaryAction={renderAction && renderAction()}>
15
      <ListItemButton
14
      <ListItemButton
16
        disableRipple
15
        disableRipple
17
        onClick={onClick}
16
        onClick={onClick}
18
        LinkComponent={url ? Link : undefined}
17
        LinkComponent={url ? Link : undefined}
Línea 21... Línea 20...
21
        <ListItemAvatar>
20
        <ListItemAvatar>
22
          <Avatar alt={`${title} image`} src={image} />
21
          <Avatar alt={`${title} image`} src={image} />
23
        </ListItemAvatar>
22
        </ListItemAvatar>
Línea 24... Línea 23...
24
 
23
 
25
        <ListItemText primary={title} secondary={subtitle} />
-
 
26
 
-
 
27
        <ListItemSecondaryAction>{renderAction && renderAction()}</ListItemSecondaryAction>
24
        <ListItemText primary={title} secondary={subtitle} />
28
      </ListItemButton>
25
      </ListItemButton>
29
    </MuiListItem>
26
    </MuiListItem>
30
  );
27
  );