1
0
Fork 0

Fix repeating Blog Posts

This commit is contained in:
Amarpreet Minhas 2019-08-03 23:17:32 -04:00
parent 6d2cdc44a8
commit e6ef0b1dae

View file

@ -17,7 +17,6 @@ class PostList extends React.Component {
const post = posts.entities[id]
return (
<div className="item" key={post.id}>
<h1>Blog Posts</h1>
<div className="content">
<div className="description">
<h2><b><u><Link to={"/posts/" + post.slug}>{post.title}</Link></u></b></h2>
@ -36,8 +35,11 @@ class PostList extends React.Component {
render () {
return (
<div className="ui relaxed divided list">
{this.renderList()}
<div>
<h1>Blog Posts</h1>
<div className="ui relaxed divided list">
{this.renderList()}
</div>
</div>
);
}