Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1520 Rev 1521
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,
-
 
11
  ListItemText,
10
  ListItemText,
12
  Typography
11
  Typography
13
} from '@mui/material'
12
} from '@mui/material'
Línea 14... Línea 13...
14
 
13
 
Línea 28... Línea 27...
28
  const labels = useSelector(({ intl }) => intl.labels)
27
  const labels = useSelector(({ intl }) => intl.labels)
29
  const dispatch = useDispatch()
28
  const dispatch = useDispatch()
Línea 30... Línea 29...
30
 
29
 
31
  const users = useMemo(
30
  const users = useMemo(
32
    () => (lookMore ? peopleYouMayKnow : [...peopleYouMayKnow].slice(0, 3)),
31
    () => (lookMore ? peopleYouMayKnow : [...peopleYouMayKnow].slice(0, 3)),
33
    [peopleYouMayKnow]
32
    [peopleYouMayKnow, lookMore]
Línea 34... Línea 33...
34
  )
33
  )
35
 
34
 
36
  const handleConnect = (url) => {
35
  const handleConnect = (url) => {
Línea 85... Línea 84...
85
                    <Avatar alt={`${name} image`} src={image} />
84
                    <Avatar alt={`${name} image`} src={image} />
86
                  </ListItemAvatar>
85
                  </ListItemAvatar>
Línea 87... Línea 86...
87
 
86
 
Línea 88... Línea -...
88
                  <ListItemText primary={name} />
-
 
89
 
87
                  <ListItemText primary={name} />
90
                  <ListItemSecondaryAction sx={{ position: 'relative' }}>
88
 
91
                    {link_request && (
89
                  {link_request && (
92
                      <ButtonPrimary
90
                    <ButtonPrimary
93
                        label={labels.connect}
91
                      label={labels.connect}
94
                        onClick={() => handleConnect(link_request)}
92
                      onClick={() => handleConnect(link_request)}
95
                      />
93
                    />
96
                    )}
94
                  )}
97
                    {link_cancel && (
95
                  {link_cancel && (
98
                      <ButtonSecondary
96
                    <ButtonSecondary
99
                        label={labels.cancel}
97
                      label={labels.cancel}
100
                        onClick={() => handleConnect(link_cancel)}
98
                      onClick={() => handleConnect(link_cancel)}
101
                      />
-
 
102
                    )}
99
                    />
103
                  </ListItemSecondaryAction>
100
                  )}
104
                </ListItemButton>
101
                </ListItemButton>
105
              </ListItem>
102
              </ListItem>
106
            )
103
            )