Fix repeating Blog Posts
This commit is contained in:
parent
6d2cdc44a8
commit
e6ef0b1dae
1 changed files with 5 additions and 3 deletions
|
@ -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,8 +35,11 @@ class PostList extends React.Component {
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div className="ui relaxed divided list">
|
<div>
|
||||||
{this.renderList()}
|
<h1>Blog Posts</h1>
|
||||||
|
<div className="ui relaxed divided list">
|
||||||
|
{this.renderList()}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue