mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
30 lines
828 B
React
30 lines
828 B
React
![]() |
import React, { PropTypes, Component } from 'react';
|
||
|
import { ListContainer } from "meteor/utilities:react-list-container";
|
||
|
import Posts from "meteor/nova:posts";
|
||
|
|
||
|
class SubscribedPosts extends Component {
|
||
|
|
||
|
render() {
|
||
|
|
||
|
const params = {view: 'userSubscribedPosts', userId: Meteor.userId(), listId: "posts.list.subscribed"};
|
||
|
const {selector, options} = Posts.parameters.get(params);
|
||
|
|
||
|
return (
|
||
|
<ListContainer
|
||
|
collection={Posts}
|
||
|
publication="posts.list"
|
||
|
selector={selector}
|
||
|
options={options}
|
||
|
terms={params}
|
||
|
joins={Posts.getJoins()}
|
||
|
component={Telescope.components.PostsList}
|
||
|
cacheSubscription={false}
|
||
|
listId={params.listId}
|
||
|
limit={Telescope.settings.get("postsPerPage", 10)}
|
||
|
/>
|
||
|
)
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = SubscribedPosts;
|