-
Notifications
You must be signed in to change notification settings - Fork 70
Solution_Adria_Valles_Jose_Cuevas #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
JoanVa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request cancelled
Jose1i1o
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request canceled
| console.log(commentsTitle); | ||
| console.log(showComments); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debugging tools could've been deleted
|
|
||
| commentsContainer.textContent = ""; | ||
| commentsBtn.style.display = "block"; | ||
| modalPosts.close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variable scope not available
| async function fetchUsers(userId, postId) { | ||
| const userPromise = await fetch(`http://localhost:3000/users/${userId}`) | ||
| .then(function (response) { | ||
| return response.json(); | ||
| }) | ||
| .then(function (data) { | ||
| createPost(data, postId); | ||
| }); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good use of this function, it is easy to access to the data =)
| const postBody = document.createElement("p"); | ||
|
|
||
| const fetchPosts = fetch(`http://localhost:3000/posts/${postId}`); | ||
| fetchPosts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed to declare it in a variable
| const commentsBtn = document.getElementById("commentsBtn"); | ||
| const commentsContainer = document.getElementById("commentsContainer"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could've been declared globally
| commentName.style.fontSize = "2rem"; | ||
| commentBody.style.fontSize = "1rem"; | ||
| userEmail.style.fontSize = "1rem"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could've added all styles from CSS and add classes from JS
Jesusjha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job <3 <3 =)
No description provided.