Refactor stylesheets

This commit is contained in:
riggraz
2019-09-02 19:59:55 +02:00
parent 86286b634d
commit 66dde5ee91
15 changed files with 139 additions and 155 deletions

View File

@@ -0,0 +1,31 @@
import * as React from 'react';
import NewPost from './NewPost';
import PostList from './PostList';
import IBoard from '../../interfaces/IBoard';
import '../../stylesheets/components/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">
<div className="sidebar">
<NewPost board={board} isLoggedIn={isLoggedIn} authenticityToken={authenticityToken} />
</div>
<PostList board={board} />
</div>
);
}
}
export default Board;