mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
16 lines
No EOL
437 B
JavaScript
16 lines
No EOL
437 B
JavaScript
import React from 'react';
|
|
import { Link } from 'react-router';
|
|
|
|
const PostsCategories = ({post}) => {
|
|
return (
|
|
<div className="posts-categories">
|
|
{post.categories.map(category =>
|
|
<Link className="posts-category" key={category._id} to={{pathname: "/", query: {cat: category.slug}}}>{category.name}</Link>
|
|
)}
|
|
</div>
|
|
)
|
|
};
|
|
|
|
PostsCategories.displayName = "PostsCategories";
|
|
|
|
module.exports = PostsCategories; |