Merge branch 'admin-delete' of https://github.com/ClaytonWWilson/CS307-Team24 into admin-delete:x

This commit is contained in:
Danny Voltz
2019-12-05 12:25:19 -05:00
2 changed files with 17 additions and 2 deletions

View File

@@ -62,6 +62,7 @@ class Home extends Component {
flagPost = (event) => {
// Flags a post
let postId = event.target.dataset.key ? event.target.dataset.key : event.target.parentNode.dataset.key;
console.log(postId);
axios.post(`/hidePost`, {postId})
.then((res) => {
console.log(res.data);
@@ -160,6 +161,8 @@ class Home extends Component {
{/* <button>Quote</button> */}
<Typography variant="body2" color={"textSecondary"}>Likes {post.likeCount} Comments {post.commentCount}</Typography>
</CardContent>
</Card>
)