mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
20 lines
No EOL
513 B
JavaScript
20 lines
No EOL
513 B
JavaScript
import React from 'react';
|
|
import { DocumentContainer } from "meteor/utilities:react-list-container";
|
|
import Posts from "meteor/nova:posts";
|
|
|
|
const PostsSingle = (props, context) => {
|
|
return (
|
|
<DocumentContainer
|
|
collection={Posts}
|
|
publication="posts.single"
|
|
selector={{_id: props.params._id}}
|
|
terms={props.params}
|
|
joins={Posts.getJoins()}
|
|
component={Telescope.components.PostsPage}
|
|
/>
|
|
)
|
|
};
|
|
|
|
PostsSingle.displayName = "PostsSingle";
|
|
|
|
module.exports = PostsSingle; |