Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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