| 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">
|
|
|
22 |
<div className="row">
|
|
|
23 |
<div className="offset-lg-3 col-lg-6">
|
|
|
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 |
/>
|
|
|
35 |
</div>
|
|
|
36 |
{/* <!--posts-section end--> */}
|
|
|
37 |
</div>
|
|
|
38 |
</div>
|
|
|
39 |
{/* <!--main-ws-sec end--> */}
|
|
|
40 |
</div>
|
|
|
41 |
</div>
|
|
|
42 |
</div>
|
|
|
43 |
</div>
|
|
|
44 |
</main>
|
|
|
45 |
</React.Fragment>
|
|
|
46 |
);
|
|
|
47 |
};
|
|
|
48 |
|
|
|
49 |
const mapDispatchToProps = {
|
|
|
50 |
setTimelineUrl: (url) => setTimelineUrl(url),
|
|
|
51 |
};
|
|
|
52 |
|
|
|
53 |
export default connect(null, mapDispatchToProps)(Feed);
|