Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1516 Rev 1518
Línea 27... Línea 27...
27
  const labels = useSelector(({ intl }) => intl.labels)
27
  const labels = useSelector(({ intl }) => intl.labels)
28
  const dispatch = useDispatch()
28
  const dispatch = useDispatch()
Línea 29... Línea 29...
29
 
29
 
30
  const users = useMemo(
30
  const users = useMemo(
31
    () => (lookMore ? peopleYouMayKnow : [...peopleYouMayKnow].slice(0, 3)),
31
    () => (lookMore ? peopleYouMayKnow : [...peopleYouMayKnow].slice(0, 3)),
32
    []
32
    [peopleYouMayKnow]
Línea 33... Línea 33...
33
  )
33
  )
34
 
34
 
35
  const handleConnect = (url) => {
35
  const handleConnect = (url) => {
Línea 70... Línea 70...
70
            {lookMore ? labels.view_less : labels.view_more}
70
            {lookMore ? labels.view_less : labels.view_more}
71
          </span>
71
          </span>
72
        )}
72
        )}
73
      </Box>
73
      </Box>
Línea -... Línea 74...
-
 
74
 
-
 
75
      {!users.length ? (
-
 
76
        <Typography variant='body1'>{labels.datatable_empty}</Typography>
74
 
77
      ) : (
75
      <List sx={{ width: '100%', maxHeight: 300, overflow: 'auto' }}>
78
        <List sx={{ width: '100%', maxHeight: 300, overflow: 'auto' }}>
76
        {users.map(
79
          {users.map(
77
          ({ id, image, link_cancel, link_request, name, profile }) => {
-
 
78
            return (
80
            ({ id, image, link_cancel, link_request, name, profile }) => (
79
              <ListItem
81
              <ListItem
80
                key={id}
82
                key={id}
81
                disablePadding
83
                disablePadding
82
                disableRipple
84
                disableRipple
Línea 104... Línea 106...
104
 
106
 
105
                  <ListItemText primary={name} />
107
                  <ListItemText primary={name} />
106
                </ListItemButton>
108
                </ListItemButton>
107
              </ListItem>
109
              </ListItem>
108
            )
110
            )
109
          }
111
          )}
110
        )}
112
        </List>
111
      </List>
113
      )}
112
    </WidgetWrapper>
114
    </WidgetWrapper>
113
  )
115
  )
Línea 114... Línea 116...
114
}
116
}