Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1371 Rev 1378
Línea 5... Línea 5...
5
import PeopleYouMayKnow from "../../../shared/helpers/people-you-may-know/PeopleYouMayKnow";
5
import PeopleYouMayKnow from "../../../shared/helpers/people-you-may-know/PeopleYouMayKnow";
6
import NotificationAlert from "../../../shared/notification/NotificationAlert";
6
import NotificationAlert from "../../../shared/notification/NotificationAlert";
7
import FeedSection from "../feed-section/FeedSection";
7
import FeedSection from "../feed-section/FeedSection";
8
import ShareFeed from "../share-feed/ShareFeed";
8
import ShareFeed from "../share-feed/ShareFeed";
9
import ShareModal from "../share-modal/ShareModal";
9
import ShareModal from "../share-modal/ShareModal";
10
import parse from "html-react-parser";
-
 
Línea 11... Línea 10...
11
 
10
 
12
import styles from "./HomeSection.module.scss";
11
import styles from "./HomeSection.module.scss";
13
import { axios } from "../../../utils";
12
import { axios } from "../../../utils";
-
 
13
import { addNotification } from "../../../redux/notification/notification.actions";
Línea 14... Línea 14...
14
import { addNotification } from "../../../redux/notification/notification.actions";
14
import ProfileInfo from "./ProfileInfo";
15
 
15
 
16
const HomeSection = (props) => {
16
const HomeSection = (props) => {
Línea 28... Línea 28...
28
      .then(res => {
28
      .then(res => {
29
        if(res.data.success){
29
        if(res.data.success){
30
          setNews(res.data.data)
30
          setNews(res.data.data)
31
        }
31
        }
32
      })
32
      })
33
      .catch(err => {
33
      .catch(() => {
34
        addNotification({
34
        addNotification({
35
          style: "error",
35
          style: "error",
36
          msg: "Disculpe, ha ocurrido un error buscando novedades",
36
          msg: "Disculpe, ha ocurrido un error buscando novedades",
37
        });
37
        });
38
      })
38
      })
Línea 45... Línea 45...
45
    <div>
45
    <div>
46
      <div className="main-section">
46
      <div className="main-section">
47
        <div className={styles.mainSection}>
47
        <div className={styles.mainSection}>
48
          {/* <!--  LEFT COLUMN START --> */}
48
          {/* <!--  LEFT COLUMN START --> */}
49
          <div className={styles.sectionHeader}>
49
          <div className={styles.sectionHeader}>
50
            <div className={styles.userProfile}>
-
 
51
              <div className={styles.userProfile__header}>
-
 
52
                <div className={styles.userProfile__header__imgContainer}>
-
 
53
                  <img src={image} alt="profile-image" />
-
 
54
                </div>
50
            <ProfileInfo
55
                <div className={styles.userProfile__header__nameContainer}>
-
 
56
                  <p
51
              image={image}
57
                    className="text-center font-weight-bold"
-
 
58
                  >
-
 
59
                    {fullName}
52
              fullName={fullName}
60
                  </p>
-
 
61
                  {
-
 
62
                    !!description && (
-
 
63
                      <p
-
 
64
                        className="text-center p-1 small-text-children"
-
 
65
                      >
-
 
66
                        {parse(description)}
53
              description={description}
67
                      </p>
-
 
68
                    )
-
 
69
                  }
-
 
70
                </div>
-
 
71
              </div>
-
 
72
              <div className={styles.userProfile__headerBackground}></div>
-
 
73
              <div
-
 
74
                className="row"
-
 
75
              >
-
 
76
                <div
-
 
77
                  className="col"
-
 
78
                >
-
 
79
                  <p
-
 
80
                    className={
-
 
81
                      styles.userProfile__connectionInfo__infoContainer__title
-
 
82
                    }
-
 
83
                  >
-
 
84
                    <i className="fa fa-eye" />
-
 
85
                    {visits}
54
              visits={visits}
86
                  </p>
-
 
87
                </div>
-
 
88
                <div
-
 
89
                  className="col"
-
 
90
                >
-
 
91
                  <p
-
 
92
                    className={
-
 
93
                      styles.userProfile__connectionInfo__infoContainer__title
-
 
94
                    }
-
 
95
                  >
-
 
96
                    <i className="pl-2 fa fa-map-marker px-2"></i>
-
 
97
                    {country || ''}
55
              country={country}
98
                  </p>
-
 
99
                </div>
-
 
100
                <div
-
 
101
                  className="col"
-
 
102
                >
-
 
103
                  <p
-
 
104
                    className={
-
 
105
                      styles.userProfile__connectionInfo__infoContainer__title
-
 
106
                    }
-
 
107
                  >
-
 
108
                    <i className="fa fa-share-alt" />
-
 
109
                    {connections}
56
              connections={connections}
110
                  </p>
-
 
111
                </div>
-
 
112
              </div>
-
 
113
            </div>
57
            />
114
            <div className={`${styles.widget} ${styles.mobile_widget}`}>
58
            <div className={`${styles.widget} ${styles.mobile_widget}`}>
115
              <div className={styles.widget__app}>
59
              <div className={styles.widget__app}>
116
                <a href="#">
60
                <a href="#">
117
                  <img
61
                  <img
118
                    className={styles.widget__app__img}
62
                    className={styles.widget__app__img}