Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2913 | Rev 2930 | 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";
2912 stevensc 17
import SuggestedGroupsHelper from "../../../shared/helpers/suggested-groups-helper/SuggestedGroupsHelper";
1 www 18
 
19
const HomeSection = (props) => {
20
  // props destructuring
21
  const { routeTimeline, addNotification } = props;
22
 
23
  // backendVars destructuring
24
  const { image, fullName, country, visits, connections, description, feed } = props.backendVars;
25
 
26
  // redux destructuring
27
  const { setTimelineUrl } = props;
2207 stevensc 28
 
1 www 29
  setTimelineUrl(routeTimeline);
30
  return (
31
    <div>
32
      <div className="main-section">
33
        <div className={styles.mainSection}>
34
          {/* <!--  LEFT COLUMN START --> */}
1449 steven 35
          <div className="d-none d-sm-none d-md-block d-lg-block">
36
            <div className={styles.sectionHeader}>
2924 stevensc 37
              <SuggestedGroupsHelper />
1447 steven 38
              <SocialNetworks
39
              />
40
            </div>
1 www 41
          </div>
42
          {/* <!--  LEFT COLUMN END --> */}
43
 
44
          {/* <!-- CENTER COLUMN START --> */}
45
          <div className={styles.feedSection}>
46
            {/* <!--posts-section star--> */}
2829 stevensc 47
            <ShareFeed image={image} feedType={feedTypes.DASHBOARD} postUrl="/feed/add" />
1 www 48
            <FeedSection
49
              routeTimeline={routeTimeline}
50
              feed={feed}
2837 stevensc 51
              image={image}
1 www 52
            />
53
            {/* <!--posts-section end--> */}
54
          </div>
55
          {/* <!-- CENTER COLUMN END --> */}
56
 
57
          {/* <!-- RIGTH COLUMN START --> */}
58
          <div className={styles.peopleYouMayKnow}>
59
            {/* <?php echo $this->peopleYouMayKnowHelper($currentUser->id) ?> */}
2910 stevensc 60
            <PeopleYouMayKnow />
2207 stevensc 61
            <HomeNews />
1 www 62
          </div>
63
          {/* <!--right-sidebar end--> */}
64
        </div>
65
        {/* <!-- RIGTH COLUMN END --> */}
66
      </div>
67
      <ShareModal />
68
      <NotificationAlert />
69
    </div>
70
  );
71
};
72
 
73
// const mapStateToProps = (state) => ({
74
 
75
// })
76
 
77
const mapDispatchToProps = {
78
  setTimelineUrl: (url) => setTimelineUrl(url),
79
  addNotification: (notification) => addNotification(notification),
80
};
81
 
82
export default connect(null, mapDispatchToProps)(HomeSection);