mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-18 02:58:48 +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);
|
||||
let postMarkup = this.state.posts ? (
|
||||
// <<<<<<< admin-delete
|
||||
this.state.posts.map(post => post.hidden ? null :
|
||||
this.state.following ?
|
||||
this.state.following.includes(post.userHandle) ? (
|
||||
this.state.posts.map(post => !post.hidden && this.state.following && this.state.following.includes(post.userHandle) ? (
|
||||
<Card className={classes.card} key={post.postId}>
|
||||
<CardContent>
|
||||
<Typography>
|
||||
@ -200,8 +198,6 @@ class Home extends Component {
|
||||
) : (
|
||||
<p></p>
|
||||
)
|
||||
) : (
|
||||
<p></p>
|
||||
)
|
||||
// =======
|
||||
// this.state.posts.map(post =>
|
||||
@ -214,7 +210,7 @@ class Home extends Component {
|
||||
// <p></p>
|
||||
// )
|
||||
// >>>>>>> master
|
||||
)
|
||||
|
||||
) : (
|
||||
<p>Loading post...</p>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user