Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1521 Rev 1523
Línea 6... Línea 6...
6
  List,
6
  List,
7
  ListItem,
7
  ListItem,
8
  ListItemAvatar,
8
  ListItemAvatar,
9
  ListItemButton,
9
  ListItemButton,
10
  ListItemText,
10
  ListItemText,
11
  Typography
11
  Typography,
-
 
12
  styled
12
} from '@mui/material'
13
} from '@mui/material'
Línea 13... Línea 14...
13
 
14
 
14
import { axios } from '../../../utils'
15
import { axios } from '../../../utils'
15
import { addNotification } from '../../../redux/notification/notification.actions'
16
import { addNotification } from '../../../redux/notification/notification.actions'
Línea 16... Línea 17...
16
import useFetch from '../../../hooks/useFetch'
17
import useFetch from '../../../hooks/useFetch'
17
 
18
 
Línea -... Línea 19...
-
 
19
import WidgetWrapper from '../WidgetLayout'
-
 
20
import { ButtonPrimary, ButtonSecondary } from '@buttons'
-
 
21
 
-
 
22
const Header = styled(Box)(({ theme }) => ({
-
 
23
  display: 'flex',
-
 
24
  alignItems: 'baseline',
-
 
25
  justifyContent: 'space-between',
-
 
26
  padding: theme.spacing(1),
-
 
27
  span: {
-
 
28
    cursor: 'pointer'
18
import WidgetWrapper from '../WidgetLayout'
29
  }
19
import { ButtonPrimary, ButtonSecondary } from '@buttons'
30
}))
20
 
31
 
21
const PeopleYouMayKnow = () => {
32
const PeopleYouMayKnow = () => {
22
  const { data: peopleYouMayKnow, refetch } = useFetch(
33
  const { data: peopleYouMayKnow, refetch } = useFetch(
Línea 55... Línea 66...
55
    })
66
    })
56
  }
67
  }
Línea 57... Línea 68...
57
 
68
 
58
  return (
69
  return (
59
    <WidgetWrapper>
70
    <WidgetWrapper>
60
      <Box
-
 
61
        display='flex'
-
 
62
        alignItems='baseline'
-
 
63
        justifyContent='space-between'
-
 
64
        padding={1}
-
 
65
      >
71
      <Header>
Línea 66... Línea 72...
66
        <Typography variant='h3'>{`${labels.connect_with}:`}</Typography>
72
        <Typography variant='h3'>{`${labels.connect_with}:`}</Typography>
67
 
73
 
68
        {peopleYouMayKnow.length >= 4 && (
74
        {peopleYouMayKnow.length >= 4 && (
69
          <span onClick={() => setLookMore(!lookMore)}>
75
          <Typography variant='body2' onClick={() => setLookMore(!lookMore)}>
70
            {lookMore ? labels.view_less : labels.view_more}
76
            {lookMore ? labels.view_less : labels.view_more}
71
          </span>
77
          </Typography>
Línea 72... Línea 78...
72
        )}
78
        )}
73
      </Box>
79
      </Header>
74
 
80
 
75
      {!users.length ? (
81
      {!users.length ? (