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
33 lines
925 B
TypeScript
33 lines
925 B
TypeScript
import * as React from 'react';
|
|
|
|
import PostList from './PostList';
|
|
import { TitleText } from '../common/CustomTexts';
|
|
|
|
import IPostStatus from '../../interfaces/IPostStatus';
|
|
import IPostJSON from '../../interfaces/json/IPost';
|
|
import IBoard from '../../interfaces/IBoard';
|
|
|
|
interface Props {
|
|
postStatus: IPostStatus;
|
|
posts: Array<IPostJSON>;
|
|
boards: Array<IBoard>;
|
|
openPostsInNewTab: boolean;
|
|
}
|
|
|
|
const PostListByPostStatus = ({ postStatus, posts, boards, openPostsInNewTab }: Props) => (
|
|
<div className="roadmapColumn">
|
|
<div className="columnHeader"
|
|
style={{backgroundColor: postStatus.color}}>
|
|
<div className="columnTitle"><TitleText>{postStatus.name}</TitleText></div>
|
|
</div>
|
|
<div className="scrollContainer">
|
|
<PostList
|
|
posts={posts}
|
|
boards={boards}
|
|
openPostsInNewTab={openPostsInNewTab}
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
export default PostListByPostStatus; |