Vulcan/packages/nova-base-components/lib/posts/PostsPage.jsx
Sacha Greif 6665a7c968 making component names and class names more consistent.
- Posts, Comments, Users, etc. are always pluralized.
- CSS classes are based off component names (PostsTitle -> posts-title)
2016-04-19 15:45:36 +09:00

28 lines
No EOL
747 B
JavaScript

import React from 'react';
const PostsPage = ({document, currentUser}) => {
({PostsCommentsThread, PostsItem, PostsCategories, SocialShare, Vote, PostsStats, HeadTags} = Telescope.components);
const post = document;
const htmlBody = {__html: post.htmlBody};
return (
<div className="posts-page">
<HeadTags url={Posts.getLink(post)} title={post.title} image={post.thumbnailUrl} />
<PostsItem post={post}/>
<div className="posts-page-body" dangerouslySetInnerHTML={htmlBody}></div>
{/*<SocialShare url={ Posts.getLink(post) } title={ post.title }/>*/}
<PostsCommentsThread document={post} currentUser={currentUser}/>
</div>
)
};
module.exports = PostsPage;
export default PostsPage;