Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2969 | Rev 2972 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
2971 stevensc 1
import React from "react";
1 www 2
import { connect } from "react-redux";
3
import { setTimelineUrl } from "../../../redux/feed/feed.actions";
4
import { feedTypes } from "../../../redux/feed/feed.types";
2971 stevensc 5
import PeopleYouMayKnow from "../../../shared/helpers/people-you-may-know/PeopleYouMayKnow";
2966 stevensc 6
import NotificationAlert from "../../../shared/notification/NotificationAlert";
2971 stevensc 7
import FeedSection from "../feed-section/FeedSection";
8
import ShareFeed from "../share-feed/ShareFeed";
2966 stevensc 9
import ShareModal from "../share-modal/ShareModal";
1 www 10
 
2971 stevensc 11
import styles from "./HomeSection.module.scss";
12
import { addNotification } from "../../../redux/notification/notification.actions";
13
import ProfileInfo from "./ProfileInfo";
2967 stevensc 14
import SocialNetworks from "./SocialNetworks";
15
import HomeNews from "./HomeNews";
2971 stevensc 16
import Footer from "../../../shared/helpers/footer/Footer";
17
import SuggestedGroupsHelper from "../../../shared/helpers/suggested-groups-helper/SuggestedGroupsHelper";
2967 stevensc 18
 
1 www 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}>
2971 stevensc 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}>
2967 stevensc 37
              <SuggestedGroupsHelper />
38
              <SocialNetworks />
1447 steven 39
            </div>
1 www 40
          </div>
2971 stevensc 41
          {/* <!--  LEFT COLUMN END --> */}
42
 
43
          {/* <!-- CENTER COLUMN START --> */}
1 www 44
          <div className={styles.feedSection}>
2971 stevensc 45
            {/* <!--posts-section star--> */}
2967 stevensc 46
            <ShareFeed image={image} feedType={feedTypes.DASHBOARD} postUrl="/feed/add" />
2971 stevensc 47
            <FeedSection
48
              routeTimeline={routeTimeline}
49
              feed={feed}
50
              image={image}
51
            />
52
            {/* <!--posts-section end--> */}
1 www 53
          </div>
2971 stevensc 54
          {/* <!-- CENTER COLUMN END --> */}
55
 
56
          {/* <!-- RIGTH COLUMN START --> */}
1 www 57
          <div className={styles.peopleYouMayKnow}>
2971 stevensc 58
            {/* <?php echo $this->peopleYouMayKnowHelper($currentUser->id) ?> */}
2967 stevensc 59
            <PeopleYouMayKnow />
60
            <HomeNews />
1 www 61
          </div>
2971 stevensc 62
          {/* <!--right-sidebar end--> */}
1 www 63
        </div>
2971 stevensc 64
        {/* <!-- RIGTH COLUMN END --> */}
1 www 65
      </div>
66
      <ShareModal />
67
      <NotificationAlert />
68
    </div>
69
  );
70
};
71
 
2971 stevensc 72
// const mapStateToProps = (state) => ({
73
 
74
// })
75
 
1 www 76
const mapDispatchToProps = {
77
  setTimelineUrl: (url) => setTimelineUrl(url),
78
  addNotification: (notification) => addNotification(notification),
79
};
80
 
81
export default connect(null, mapDispatchToProps)(HomeSection);