mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 10:18:48 +00:00
user Feed
This commit is contained in:
parent
cc20e30990
commit
83052f0a80
@ -8,7 +8,6 @@
|
|||||||
},
|
},
|
||||||
"functions": {
|
"functions": {
|
||||||
"predeploy": [
|
"predeploy": [
|
||||||
"npm --prefix \"$RESOURCE_DIR\" run lint"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"hosting": {
|
"hosting": {
|
||||||
|
|||||||
@ -26,7 +26,7 @@ class Feed extends Component {
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
||||||
axios.get("https://us-central1-twistter-e4649.cloudfunctions.net/api/getallPostsforFeed")
|
axios.get("/getallPostsforFeed")
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const post = res.data;
|
const post = res.data;
|
||||||
this.setState({microBlogs : post})
|
this.setState({microBlogs : post})
|
||||||
@ -55,7 +55,7 @@ class Feed extends Component {
|
|||||||
" " + microBlog.createdAt.substring(11,19)}
|
" " + microBlog.createdAt.substring(11,19)}
|
||||||
<br></br>Who wrote the microBlog: {microBlog.userHandle}
|
<br></br>Who wrote the microBlog: {microBlog.userHandle}
|
||||||
<br></br>Body of post: {microBlog.body}
|
<br></br>Body of post: {microBlog.body}
|
||||||
<br></br>ID of post: {microBlog.id}
|
|
||||||
<br></br>Tagged topics: {microBlog.microBlogTopics.join("," + " ")}
|
<br></br>Tagged topics: {microBlog.microBlogTopics.join("," + " ")}
|
||||||
<br></br><br></br><br></br>
|
<br></br><br></br><br></br>
|
||||||
<div className="buttons">
|
<div className="buttons">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user