Vulcan/packages/vulcan-posts/lib/components/AdminUsersPosts.jsx
2017-06-21 15:03:38 +09:00

12 lines
No EOL
323 B
JavaScript

import React from 'react';
import Posts from 'meteor/vulcan:posts';
import { Link } from 'react-router';
const AdminUsersPosts = ({ user }) =>
<ul>
{user.posts && user.posts.map(post =>
<li key={post._id}><Link to={Posts.getLink(post)}>{post.title}</Link></li>
)}
</ul>
export default AdminUsersPosts;