Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2924 | Rev 2964 | 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 />
2930 stevensc 38
              <SocialNetworks />
1447 steven 39
            </div>
1 www 40
          </div>
41
          {/* <!--  LEFT COLUMN END --> */}
42
 
43
          {/* <!-- CENTER COLUMN START --> */}
44
          <div className={styles.feedSection}>
45
            {/* <!--posts-section star--> */}
2829 stevensc 46
            <ShareFeed image={image} feedType={feedTypes.DASHBOARD} postUrl="/feed/add" />
1 www 47
            <FeedSection
48
              routeTimeline={routeTimeline}
49
              feed={feed}
2837 stevensc 50
              image={image}
1 www 51
            />
52
            {/* <!--posts-section end--> */}
53
          </div>
54
          {/* <!-- CENTER COLUMN END --> */}
55
 
56
          {/* <!-- RIGTH COLUMN START --> */}
57
          <div className={styles.peopleYouMayKnow}>
58
            {/* <?php echo $this->peopleYouMayKnowHelper($currentUser->id) ?> */}
2910 stevensc 59
            <PeopleYouMayKnow />
2207 stevensc 60
            <HomeNews />
1 www 61
          </div>
62
          {/* <!--right-sidebar end--> */}
63
        </div>
64
        {/* <!-- RIGTH COLUMN END --> */}
65
      </div>
66
      <ShareModal />
67
      <NotificationAlert />
68
    </div>
69
  );
70
};
71
 
72
// const mapStateToProps = (state) => ({
73
 
74
// })
75
 
76
const mapDispatchToProps = {
77
  setTimelineUrl: (url) => setTimelineUrl(url),
78
  addNotification: (notification) => addNotification(notification),
79
};
80
 
81
export default connect(null, mapDispatchToProps)(HomeSection);