Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1518 | Rev 1520 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1518 Rev 1519
Línea 5... Línea 5...
5
  Box,
5
  Box,
6
  List,
6
  List,
7
  ListItem,
7
  ListItem,
8
  ListItemAvatar,
8
  ListItemAvatar,
9
  ListItemButton,
9
  ListItemButton,
-
 
10
  ListItemSecondaryAction,
10
  ListItemText,
11
  ListItemText,
11
  Typography
12
  Typography
12
} from '@mui/material'
13
} from '@mui/material'
Línea 13... Línea 14...
13
 
14
 
Línea 76... Línea 77...
76
        <Typography variant='body1'>{labels.datatable_empty}</Typography>
77
        <Typography variant='body1'>{labels.datatable_empty}</Typography>
77
      ) : (
78
      ) : (
78
        <List sx={{ width: '100%', maxHeight: 300, overflow: 'auto' }}>
79
        <List sx={{ width: '100%', maxHeight: 300, overflow: 'auto' }}>
79
          {users.map(
80
          {users.map(
80
            ({ id, image, link_cancel, link_request, name, profile }) => (
81
            ({ id, image, link_cancel, link_request, name, profile }) => (
-
 
82
              <ListItem key={id} disablePadding disableRipple>
81
              <ListItem
83
                <ListItemButton disableRipple>
82
                key={id}
84
                  <ListItemAvatar>
83
                disablePadding
85
                    <Avatar alt={`${name} image`} src={image} />
84
                disableRipple
86
                  </ListItemAvatar>
-
 
87
 
85
                secondaryAction={
88
                  <ListItemText primary={name} />
-
 
89
 
86
                  <>
90
                  <ListItemSecondaryAction>
87
                    {link_request && (
91
                    {link_request && (
88
                      <ButtonPrimary
92
                      <ButtonPrimary
89
                        label={labels.connect}
93
                        label={labels.connect}
90
                        onClick={() => handleConnect(link_request)}
94
                        onClick={() => handleConnect(link_request)}
91
                      />
95
                      />
Línea 94... Línea 98...
94
                      <ButtonSecondary
98
                      <ButtonSecondary
95
                        label={labels.cancel}
99
                        label={labels.cancel}
96
                        onClick={() => handleConnect(link_cancel)}
100
                        onClick={() => handleConnect(link_cancel)}
97
                      />
101
                      />
98
                    )}
102
                    )}
99
                  </>
-
 
100
                }
-
 
101
              >
-
 
102
                <ListItemButton disableRipple>
-
 
103
                  <ListItemAvatar>
-
 
104
                    <Avatar alt={`${name} image`} src={image} />
-
 
105
                  </ListItemAvatar>
103
                  </ListItemSecondaryAction>
106
 
-
 
107
                  <ListItemText primary={name} />
-
 
108
                </ListItemButton>
104
                </ListItemButton>
109
              </ListItem>
105
              </ListItem>
110
            )
106
            )
111
          )}
107
          )}
112
        </List>
108
        </List>