Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6830 Rev 6831
Línea 1... Línea -...
1
/* eslint-disable react/prop-types */
-
 
2
import React from 'react'
1
import React from 'react'
3
import Avatar from '../../../../shared/Avatar/Avatar'
-
 
4
import parse from 'html-react-parser'
2
import parse from 'html-react-parser'
-
 
3
 
-
 
4
import Avatar from '../../UI/AvatarImage'
5
import StatItem from './StatItem'
5
import StatItem from './StatItem'
-
 
6
import { useSelector } from 'react-redux'
Línea 6... Línea 7...
6
 
7
 
7
const UserInfo = ({
8
const UserInfo = ({
8
  cover = '',
9
  cover = '',
9
  image = '',
10
  image = '',
10
  fullName = '',
11
  fullName = '',
11
  description = '',
12
  description = '',
12
  visits = 0,
13
  visits = 0,
13
  connections = 0,
14
  connections = 0,
-
 
15
}) => {
-
 
16
  const labels = useSelector(({ intl }) => intl.labels)
14
}) => {
17
 
15
  return (
18
  return (
16
    <div className="sidebar__top">
19
    <div className="sidebar__top">
17
      {cover && (
20
      {cover && (
18
        <img
21
        <img
19
          src="./static/profile_2.jpg"
22
          src="./static/profile_2.jpg"
20
          alt="Profile cover"
23
          alt="Profile cover"
21
          className="sidebar__cover"
24
          className="sidebar__cover"
22
        />
25
        />
23
      )}
26
      )}
24
      <Avatar imageUrl={image} size="xl" name={fullName} />
27
      <Avatar imageUrl={image} size="xl" name={fullName} />
25
      <h2>{parse(fullName)}</h2>
28
      {fullName && <h2>{parse(fullName)}</h2>}
26
      {parse(description)}
29
      {description && parse(description)}
27
      <StatItem
30
      <StatItem
28
        title={`¿${LABELS.WHO_HAS_SEEN_MY_PROFILE}?`}
31
        title={`¿${labels.whoe_has_seen_my_profile}?`}
29
        number={visits}
32
        number={visits}
30
        url="/profile/people-viewed-profile"
33
        url="/profile/people-viewed-profile"
31
      />
34
      />
32
      <StatItem
35
      <StatItem
33
        title={LABELS.CONNECTIONS}
36
        title={labels.connections}
34
        number={connections}
37
        number={connections}
35
        url="/connection/my-connections"
38
        url="/connection/my-connections"
36
      />
39
      />
37
    </div>
40
    </div>