-
Notifications
You must be signed in to change notification settings - Fork 417
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
peki's movies #326
base: master
Are you sure you want to change the base?
peki's movies #326
Conversation
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.
Hi Peki! Sorry for the (very) late code review, the code looks good and the diligent commenting makes it very readable. You've kept it nice and compact and the CSS is sleek as usual. Great job!
// one position to the right. Then, when we use Math.round(), we round the number | ||
// we round the number to the nearest whole number. By doing this, we are | ||
// effectively rounding the original value to one decimal place | ||
|
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 with the commenting, it makes reading the code and your reasoning behind it so much easier!
// FetchDetails gets movie details from an API | ||
const FetchDetails = () => { | ||
fetch(`https://api.themoviedb.org/3/tv/${id}?api_key=d120fe8810b0e45a06baa667dd3dc7fc&language=en-US`) | ||
.then((response) => response.json()) |
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.
Perhaps you should hide your API key and make it into a variable so it isn't accessible in your repository? I just remembered me and Andreas didn't do this either.
// FetchMovies gets popular movies from an API | ||
const FetchMovies = () => { | ||
setLoading(true); | ||
fetch('https://api.themoviedb.org/3/account/18557443/watchlist/tv?api_key=d120fe8810b0e45a06baa667dd3dc7fc&session_id=d2e64114dc41e5d2079593f40f511fba80818486') |
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.
Great job making your own list of tv-shows! You have good taste hehe.
}; | ||
|
||
// This part shows the movie poster and title on the screen | ||
return ( |
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.
I like the fact that you've made each movie in the movielist into its own component.
No description provided.