Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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