Posts on Home now display profile images

This commit is contained in:
2019-12-04 15:37:09 -05:00
parent 0776728e73
commit 99ffbe52a4
2 changed files with 46 additions and 18 deletions

View File

@@ -60,9 +60,13 @@ class Home extends Component {
<Card className={classes.card} key={post.postId}>
<CardContent>
<Typography>
{
{/* {
this.state.imageUrl ? (<img src={this.state.imageUrl} height="50" width="50" />) :
(<img src={noImage} height="50" width="50"/>)
} */}
{
post.profileImage ? (<img src={post.profileImage} height="50" width="50" />) :
(<img src={noImage} height="50" width="50"/>)
}
</Typography>
<Typography variant="h5"><b>{post.userHandle}</b></Typography>