mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-18 11:08:47 +00:00
Fix merge errors, but posts are not displaying on home.js
This commit is contained in:
parent
a459e6581e
commit
f30a9ae27c
@ -142,9 +142,7 @@ class Home extends Component {
|
|||||||
console.log(hiddenBool);
|
console.log(hiddenBool);
|
||||||
let postMarkup = this.state.posts ? (
|
let postMarkup = this.state.posts ? (
|
||||||
// <<<<<<< admin-delete
|
// <<<<<<< admin-delete
|
||||||
this.state.posts.map(post => post.hidden ? null :
|
this.state.posts.map(post => !post.hidden && this.state.following && this.state.following.includes(post.userHandle) ? (
|
||||||
this.state.following ?
|
|
||||||
this.state.following.includes(post.userHandle) ? (
|
|
||||||
<Card className={classes.card} key={post.postId}>
|
<Card className={classes.card} key={post.postId}>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Typography>
|
<Typography>
|
||||||
@ -200,8 +198,6 @@ class Home extends Component {
|
|||||||
) : (
|
) : (
|
||||||
<p></p>
|
<p></p>
|
||||||
)
|
)
|
||||||
) : (
|
|
||||||
<p></p>
|
|
||||||
)
|
)
|
||||||
// =======
|
// =======
|
||||||
// this.state.posts.map(post =>
|
// this.state.posts.map(post =>
|
||||||
@ -214,7 +210,7 @@ class Home extends Component {
|
|||||||
// <p></p>
|
// <p></p>
|
||||||
// )
|
// )
|
||||||
// >>>>>>> master
|
// >>>>>>> master
|
||||||
)
|
|
||||||
) : (
|
) : (
|
||||||
<p>Loading post...</p>
|
<p>Loading post...</p>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user