2019-08-26 14:29:56 +02:00
|
|
|
import * as React from 'react';
|
|
|
|
|
|
|
|
|
|
import PostList from './PostList';
|
2022-06-08 10:20:36 +02:00
|
|
|
import { TitleText } from '../common/CustomTexts';
|
2019-08-26 14:29:56 +02:00
|
|
|
|
|
|
|
|
import IPostStatus from '../../interfaces/IPostStatus';
|
2019-09-11 18:30:59 +02:00
|
|
|
import IPostJSON from '../../interfaces/json/IPost';
|
2019-08-26 14:29:56 +02:00
|
|
|
import IBoard from '../../interfaces/IBoard';
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
postStatus: IPostStatus;
|
2019-09-11 18:30:59 +02:00
|
|
|
posts: Array<IPostJSON>;
|
2019-08-26 14:29:56 +02:00
|
|
|
boards: Array<IBoard>;
|
2024-09-11 19:27:13 +02:00
|
|
|
openPostsInNewTab: boolean;
|
2019-08-26 14:29:56 +02:00
|
|
|
}
|
|
|
|
|
|
2024-09-11 19:27:13 +02:00
|
|
|
const PostListByPostStatus = ({ postStatus, posts, boards, openPostsInNewTab }: Props) => (
|
2019-09-19 16:42:43 +02:00
|
|
|
<div className="roadmapColumn">
|
2019-09-16 12:22:30 +02:00
|
|
|
<div className="columnHeader"
|
2019-09-19 16:42:43 +02:00
|
|
|
style={{backgroundColor: postStatus.color}}>
|
2019-09-15 18:26:51 +02:00
|
|
|
<div className="columnTitle"><TitleText>{postStatus.name}</TitleText></div>
|
2019-08-26 14:29:56 +02:00
|
|
|
</div>
|
2019-09-16 12:22:30 +02:00
|
|
|
<div className="scrollContainer">
|
2019-08-26 14:29:56 +02:00
|
|
|
<PostList
|
|
|
|
|
posts={posts}
|
|
|
|
|
boards={boards}
|
2024-09-11 19:27:13 +02:00
|
|
|
openPostsInNewTab={openPostsInNewTab}
|
2019-08-26 14:29:56 +02:00
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
export default PostListByPostStatus;
|