Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2519 | Rev 2837 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
import React from "react";
2
import { connect } from "react-redux";
3
import { setTimelineUrl } from "../../../redux/feed/feed.actions";
4
import { feedTypes } from "../../../redux/feed/feed.types";
5
import PeopleYouMayKnow from "../../../shared/helpers/people-you-may-know/PeopleYouMayKnow";
6
import NotificationAlert from "../../../shared/notification/NotificationAlert";
7
import FeedSection from "../feed-section/FeedSection";
8
import ShareFeed from "../share-feed/ShareFeed";
9
import ShareModal from "../share-modal/ShareModal";
10
 
11
import styles from "./HomeSection.module.scss";
12
import { addNotification } from "../../../redux/notification/notification.actions";
1378 steven 13
import ProfileInfo from "./ProfileInfo";
1379 steven 14
import SocialNetworks from "./SocialNetworks";
1380 steven 15
import HomeNews from "./HomeNews";
2261 stevensc 16
import Footer from "../../../shared/helpers/footer/Footer";
1 www 17
 
18
const HomeSection = (props) => {
19
  // props destructuring
20
  const { routeTimeline, addNotification } = props;
21
 
22
  // backendVars destructuring
23
  const { image, fullName, country, visits, connections, description, feed } = props.backendVars;
24
 
25
  // redux destructuring
26
  const { setTimelineUrl } = props;
2207 stevensc 27
 
1 www 28
  setTimelineUrl(routeTimeline);
29
  return (
30
    <div>
31
      <div className="main-section">
32
        <div className={styles.mainSection}>
33
          {/* <!--  LEFT COLUMN START --> */}
1449 steven 34
          <div className="d-none d-sm-none d-md-block d-lg-block">
35
            <div className={styles.sectionHeader}>
1448 steven 36
              <ProfileInfo
37
                image={image}
38
                fullName={fullName}
39
                description={description}
40
                visits={visits}
41
                country={country}
42
                connections={connections}
43
              />
1447 steven 44
              <SocialNetworks
45
              />
46
            </div>
1 www 47
          </div>
48
          {/* <!--  LEFT COLUMN END --> */}
49
 
50
          {/* <!-- CENTER COLUMN START --> */}
51
          <div className={styles.feedSection}>
52
            {/* <!--posts-section star--> */}
2829 stevensc 53
            <ShareFeed image={image} feedType={feedTypes.DASHBOARD} postUrl="/feed/add" />
1 www 54
            <FeedSection
55
              routeTimeline={routeTimeline}
56
              feed={feed}
57
            />
58
            {/* <!--posts-section end--> */}
59
          </div>
60
          {/* <!-- CENTER COLUMN END --> */}
61
 
62
          {/* <!-- RIGTH COLUMN START --> */}
63
          <div className={styles.peopleYouMayKnow}>
64
            {/* <?php echo $this->peopleYouMayKnowHelper($currentUser->id) ?> */}
2207 stevensc 65
            <HomeNews />
66
            <PeopleYouMayKnow />
1 www 67
          </div>
68
          {/* <!--right-sidebar end--> */}
69
        </div>
70
        {/* <!-- RIGTH COLUMN END --> */}
71
      </div>
72
      <ShareModal />
73
      <NotificationAlert />
74
    </div>
75
  );
76
};
77
 
78
// const mapStateToProps = (state) => ({
79
 
80
// })
81
 
82
const mapDispatchToProps = {
83
  setTimelineUrl: (url) => setTimelineUrl(url),
84
  addNotification: (notification) => addNotification(notification),
85
};
86
 
87
export default connect(null, mapDispatchToProps)(HomeSection);