mirror of
https://github.com/astuto/astuto.git
synced 2025-12-14 18:57:51 +01:00
* Make it possible to embed the roadmap in iframe * Add board and status filters * Add query params to show/hide roadmap filters
21 lines
545 B
TypeScript
21 lines
545 B
TypeScript
import * as React from 'react';
|
|
|
|
import { TitleText, UppercaseText } from '../common/CustomTexts';
|
|
|
|
interface Props {
|
|
id: number;
|
|
title: string;
|
|
boardName: string;
|
|
openPostInNewTab: boolean;
|
|
}
|
|
|
|
const PostListItem = ({id, title, boardName, openPostInNewTab}: Props) => (
|
|
<a href={`/posts/${id}`} className="postLink" target={openPostInNewTab ? '_blank' : '_self'}>
|
|
<div className="postListItem">
|
|
<TitleText>{title}</TitleText>
|
|
<UppercaseText>{boardName}</UppercaseText>
|
|
</div>
|
|
</a>
|
|
);
|
|
|
|
export default PostListItem; |