mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00

- Posts, Comments, Users, etc. are always pluralized. - CSS classes are based off component names (PostsTitle -> posts-title)
24 lines
No EOL
644 B
JavaScript
24 lines
No EOL
644 B
JavaScript
import React from 'react';
|
|
|
|
import SmartContainers from "meteor/utilities:react-list-container";
|
|
const ListContainer = SmartContainers.ListContainer;
|
|
|
|
const PostsListHeader = () => {
|
|
|
|
({PostsViews, SearchForm, CategoriesList} = Telescope.components)
|
|
|
|
return (
|
|
<div>
|
|
<div className="posts-list-header">
|
|
<div className="post-lists-header-categories">
|
|
<ListContainer collection={Categories} limit={0} resultsPropName="categories" component={CategoriesList}/>
|
|
</div>
|
|
<PostsViews />
|
|
<SearchForm/>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
module.exports = PostsListHeader;
|
|
export default PostsListHeader; |