Files
astuto/app/javascript/components/Roadmap/PostListItem.tsx

18 lines
396 B
TypeScript
Raw Normal View History

2019-08-26 14:29:56 +02:00
import * as React from 'react';
interface Props {
2019-09-12 15:51:45 +02:00
id: number;
2019-08-26 14:29:56 +02:00
title: string;
boardName: string;
}
2019-09-12 15:51:45 +02:00
const PostListItem = ({id, title, boardName}: Props) => (
<a href={`/posts/${id}`} className="postLink">
2019-08-26 14:29:56 +02:00
<div className="postListItem">
<div className="postTitle">{title}</div>
<div className="postBoard">{boardName}</div>
</div>
</a>
);
export default PostListItem;