Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2829 | Rev 2910 | 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}
2837 stevensc 57
              image={image}
1 www 58
            />
59
            {/* <!--posts-section end--> */}
60
          </div>
61
          {/* <!-- CENTER COLUMN END --> */}
62
 
63
          {/* <!-- RIGTH COLUMN START --> */}
64
          <div className={styles.peopleYouMayKnow}>
65
            {/* <?php echo $this->peopleYouMayKnowHelper($currentUser->id) ?> */}
2207 stevensc 66
            <HomeNews />
67
            <PeopleYouMayKnow />
1 www 68
          </div>
69
          {/* <!--right-sidebar end--> */}
70
        </div>
71
        {/* <!-- RIGTH COLUMN END --> */}
72
      </div>
73
      <ShareModal />
74
      <NotificationAlert />
75
    </div>
76
  );
77
};
78
 
79
// const mapStateToProps = (state) => ({
80
 
81
// })
82
 
83
const mapDispatchToProps = {
84
  setTimelineUrl: (url) => setTimelineUrl(url),
85
  addNotification: (notification) => addNotification(notification),
86
};
87
 
88
export default connect(null, mapDispatchToProps)(HomeSection);