Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3730 Rev 5373
Línea 1... Línea 1...
1
/* eslint-disable react/prop-types */
1
/* eslint-disable react/prop-types */
2
import React from "react";
2
import React from 'react'
3
import { profileTypes } from "../../Profile.types";
3
import { profileTypes } from '../../Profile.types'
4
import ProfileImg from "./profile-img/ProfileImg";
4
import ProfileImg from './profile-img/ProfileImg'
5
import SocialNetworks from "./social-networks/SocialNetworks";
5
import SocialNetworks from './social-networks/SocialNetworks'
Línea 6... Línea 6...
6
 
6
 
7
const ProfileInfo = ({
7
const ProfileInfo = ({
8
  entityId = '',
8
  entityId = '',
9
  profileId = '',
9
  profileId = '',
Línea 14... Línea 14...
14
  twitter = '',
14
  twitter = '',
15
  instagram = '',
15
  instagram = '',
16
  imageProfileCover = '',
16
  imageProfileCover = '',
17
  profileType = ''
17
  profileType = ''
18
}) => {
18
}) => {
19
 
-
 
20
  let status;
19
  let status
21
  switch (profileType) {
20
  switch (profileType) {
22
    case profileTypes.USER:
21
    case profileTypes.USER:
23
      status = (
22
      status = (
24
        <ul className="flw-status">
23
        <ul className="flw-status">
25
          <li>
24
          <li>
Línea 29... Línea 28...
29
          <li>
28
          <li>
30
            <span>Seguidores</span>
29
            <span>Seguidores</span>
31
            <b>{follower}</b>
30
            <b>{follower}</b>
32
          </li>
31
          </li>
33
        </ul>
32
        </ul>
34
      );
33
      )
35
      break;
34
      break
36
    case profileTypes.COMPANY:
35
    case profileTypes.COMPANY:
37
      status = (
36
      status = (
38
        <ul className="flw-status">
37
        <ul className="flw-status">
39
          <li>
38
          <li>
40
            <span>Seguidores</span>
39
            <span>Seguidores</span>
41
            <b>{follower}</b>
40
            <b>{follower}</b>
42
          </li>
41
          </li>
43
        </ul>
42
        </ul>
44
      );
43
      )
45
      break;
44
      break
Línea 46... Línea 45...
46
 
45
 
47
    default:
46
    default:
48
      status = <ul className="flw-status">Sin Estado</ul>;
47
      status = <ul className="flw-status">Sin Estado</ul>
49
      break;
48
      break
Línea 50... Línea 49...
50
  }
49
  }
51
 
50
 
52
  return (
51
  return (
Línea 66... Línea 65...
66
        entityId={entityId}
65
        entityId={entityId}
67
        profileId={profileId}
66
        profileId={profileId}
68
        profileType={profileType}
67
        profileType={profileType}
69
      />
68
      />
70
    </div>
69
    </div>
71
  );
70
  )
72
};
71
}
Línea 73... Línea 72...
73
 
72