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