Files
astuto/app/javascript/components/Board/Board.tsx

29 lines
637 B
TypeScript
Raw Normal View History

2019-09-02 14:32:57 +02:00
import * as React from 'react';
import NewPost from './NewPost';
import PostList from './PostList';
import IBoard from '../../interfaces/IBoard';
import '../../stylesheets/components/Board/Board.scss';
interface Props {
board: IBoard;
isLoggedIn: boolean;
authenticityToken: string;
}
class Board extends React.Component<Props> {
render() {
const { board, isLoggedIn, authenticityToken } = this.props;
return (
<div className="boardContainer">
<NewPost board={board} isLoggedIn={isLoggedIn} authenticityToken={authenticityToken} />
<PostList />
</div>
);
}
}
export default Board;