Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

peki's movies #326

wants to merge 9 commits into from

Conversation

akipeki
Copy link

@akipeki akipeki commented Apr 3, 2023

No description provided.

Copy link

@AntoniaGranit AntoniaGranit left a 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

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())

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')

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 (

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants