Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1 | | 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 FeedSection from "../../../../home-section/components/feed-section/FeedSection";
4
import ShareFeed from "../../../../home-section/components/share-feed/ShareFeed";
5
import { setTimelineUrl } from "../../../../redux/feed/feed.actions";
6
import { feedTypes } from "../../../../redux/feed/feed.types";
7
 
8
const Feed = (props) => {
9
  // backendVars Destructuring
10
  const { companyId, routeTimeline } = props.backendVars;
11
 
12
  // redux destructuring
13
  const { setTimelineUrl } = props;
14
  setTimelineUrl(routeTimeline);
15
 
16
  return (
17
    <React.Fragment>
18
      <main>
19
        <div className="main-section">
20
          <div className="container">
21
            <div className="main-section-data">
2453 stevensc 22
              <div className="main-left-sidebar">
23
              </div>
24
              <div className="main-ws-sec">
25
                <ShareFeed
26
                  feedType={feedTypes.COMPANY}
27
                  postUrl={`/feed/add/company/${companyId}`}
28
                />
29
                {/* <!--posts-section star--> */}
30
                <div className="posts-section">
31
                  <FeedSection
32
                    routeTimeline={routeTimeline}
33
                    feedType={feedTypes.COMPANY}
34
                  />
1 www 35
                </div>
2453 stevensc 36
                {/* <!--posts-section end--> */}
1 www 37
              </div>
2453 stevensc 38
              <div className="right-sidebar">
39
              </div>
1 www 40
            </div>
41
          </div>
42
        </div>
43
      </main>
44
    </React.Fragment>
45
  );
46
};
47
 
48
const mapDispatchToProps = {
49
  setTimelineUrl: (url) => setTimelineUrl(url),
50
};
51
 
52
export default connect(null, mapDispatchToProps)(Feed);