mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-15 18:08:46 +00:00
tell the user if they aren't following anybody
This commit is contained in:
parent
ff7677bfb3
commit
4f2e07756d
@ -140,8 +140,7 @@ class Home extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log(hiddenBool);
|
console.log(hiddenBool);
|
||||||
let postMarkup = this.state.posts ? (
|
let postMarkup = this.state.posts ? ( this.state.following === undefined || this.state.following === null ? <Typography>You aren't following anybody right now</Typography> :
|
||||||
// <<<<<<< admin-delete
|
|
||||||
this.state.posts.map(post => !post.hidden && 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}>
|
<Card className={classes.card} key={post.postId}>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
@ -199,18 +198,6 @@ class Home extends Component {
|
|||||||
<p></p>
|
<p></p>
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
// =======
|
|
||||||
// this.state.posts.map(post =>
|
|
||||||
// this.state.following ? (
|
|
||||||
// this.state.following.includes(post.userHandle) ? (
|
|
||||||
// ) : (
|
|
||||||
// <p></p>
|
|
||||||
// )
|
|
||||||
// ) : (
|
|
||||||
// <p></p>
|
|
||||||
// )
|
|
||||||
// >>>>>>> master
|
|
||||||
|
|
||||||
) : (
|
) : (
|
||||||
<p>Loading post...</p>
|
<p>Loading post...</p>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user