mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 10:18:48 +00:00
Tested likes and shares via hardcode
This commit is contained in:
parent
e1343d503c
commit
ad0b21e629
@ -43,7 +43,7 @@ class Home extends Component {
|
||||
<CardContent>
|
||||
<Typography>
|
||||
{
|
||||
this.state.imageUrl ? (<img src={this.state.imageUrl} height="250" width="250" />) :
|
||||
this.state.imageUrl ? (<img src={this.state.imageUrl} height="50" width="50" />) :
|
||||
(<img src={noImage} height="50" width="50"/>)
|
||||
}
|
||||
</Typography>
|
||||
@ -55,11 +55,11 @@ class Home extends Component {
|
||||
<br />
|
||||
<Typography variant="body2"><b>Topics:</b> {post.microBlogTopics}</Typography>
|
||||
<br />
|
||||
<Typography variant="body2" color={"textSecondary"}>Likes {post.likeCount} Comments {post.commentCount}</Typography>
|
||||
<Typography variant="body2" color={"textSecondary"}> Likes {post.likeCount} Shares {post.commentCount} </Typography>
|
||||
</CardContent>
|
||||
</Card>
|
||||
)
|
||||
) : (<p>My Posts</p>);
|
||||
) : (<p>loading posts...</p>);
|
||||
|
||||
return (
|
||||
authenticated ?
|
||||
|
||||
@ -127,11 +127,11 @@ class user extends Component {
|
||||
<br />
|
||||
<Typography variant="body2"><b>Topics:</b> {post.microBlogTopics}</Typography>
|
||||
<br />
|
||||
<Typography variant="body2" color={"textSecondary"}>Likes {post.likeCount} Comments {post.commentCount}</Typography>
|
||||
<Typography variant="body2" color={"textSecondary"}> Likes {post.likeCount} Shares {post.commentCount} </Typography>
|
||||
</CardContent>
|
||||
</Card>
|
||||
)
|
||||
) : (<p>My Posts</p>);
|
||||
) : (<p>loading posts...</p>);
|
||||
|
||||
return (
|
||||
<Grid container spacing={24}>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user