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

Review version(1.0) #7

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

Conversation

AhmadDuhoki
Copy link

Team members:

*Mahmoud Mansour
*Zainab Saud
*Shadan Abdulkarim
*Ahmad Duhoki

https://ahmadduhoki.github.io/iraq-bc-movies-project-students/

Copy link

@MustafaMerie MustafaMerie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job team.
I just put some comments to make your code even better, please fix the issues and make pull request again

});
};
const handleSubmit = (event) => {
setLoading(true);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onSubmit the spinner should be hidden so do you think the right value here is true?

import { Card, Badge } from "react-bootstrap";

function MovieItem(props) {
const { item } = props;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can pass the {movies} object immediately MovieItem({movies}) without this line and use it in the return()
ex:
<h1>{movies.original_title}</h1>


function MovieItem(props) {
const { item } = props;
const img = `https://image.tmdb.org/t/p/w500${item.poster_path}`;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if it's done in this way:
<img src={IMG_BASE_URL + item.poster_path} alt="img"></img>
in the card body

return (
<Container className="mt-5">
<Row>
{props.movies.map((movies) => (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for better naming (movies) =>> (movie)


function moviesData(query) {
return fetch(`${moviesUrl}&query=${query}`).then((movies) => movies.json());
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the fetch working? because in the demo it's not.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Mustafa for the comments, i fixed all except the demo one cause it is working in the vscode but there are some issues in the github page.

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.

5 participants