Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1 Rev 3730
Línea -... Línea 1...
-
 
1
/* eslint-disable react/prop-types */
1
import React from "react";
2
import React from "react";
2
import { profileTypes } from "../../Profile.types";
3
import { profileTypes } from "../../Profile.types";
3
import ProfileImg from "./profile-img/ProfileImg";
4
import ProfileImg from "./profile-img/ProfileImg";
4
import SocialNetworks from "./social-networks/SocialNetworks";
5
import SocialNetworks from "./social-networks/SocialNetworks";
Línea 5... Línea 6...
5
 
6
 
6
const ProfileInfo = (props) => {
-
 
7
  // props destructuring
-
 
8
  const {
7
const ProfileInfo = ({
9
    entityId,
8
  entityId = '',
10
    profileId,
9
  profileId = '',
11
    image,
10
  image = '',
12
    following,
11
  following = '',
13
    follower,
12
  follower = '',
14
    facebook,
13
  facebook = '',
15
    twitter,
14
  twitter = '',
16
    instagram,
15
  instagram = '',
17
    imageProfileCover,
-
 
18
    addNotification,
16
  imageProfileCover = '',
19
    profileType,
17
  profileType = ''
Línea 20... Línea 18...
20
  } = props;
18
}) => {
21
 
19
 
22
  let status;
20
  let status;
23
  switch (profileType) {
21
  switch (profileType) {
Línea 56... Línea 54...
56
      <ProfileImg
54
      <ProfileImg
57
        entityId={entityId}
55
        entityId={entityId}
58
        profileId={profileId}
56
        profileId={profileId}
59
        image={image}
57
        image={image}
60
        imageProfileCover={imageProfileCover}
58
        imageProfileCover={imageProfileCover}
61
        addNotification={addNotification}
-
 
62
        profileType={profileType}
59
        profileType={profileType}
63
      />
60
      />
64
      {/* <!--user-pro-img end--> */}
-
 
65
      <div className="user_pro_status">{status}</div>
61
      <div className="user_pro_status">{status}</div>
66
      {/* <!--user_pro_status end--> */}
-
 
67
      <SocialNetworks
62
      <SocialNetworks
68
        facebook={facebook}
63
        facebook={facebook}
69
        twitter={twitter}
64
        twitter={twitter}
70
        instagram={instagram}
65
        instagram={instagram}
71
        entityId={entityId}
66
        entityId={entityId}
72
        profileId={profileId}
67
        profileId={profileId}
73
        addNotification={addNotification}
-
 
74
        profileType={profileType}
68
        profileType={profileType}
75
      />
69
      />
76
    </div>
70
    </div>
77
  );
71
  );
78
};
72
};