-
Notifications
You must be signed in to change notification settings - Fork 21
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
base: master
Are you sure you want to change the base?
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.
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); |
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.
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; |
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 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}`; |
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 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) => ( |
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.
for better naming (movies)
=>> (movie)
|
||
function moviesData(query) { | ||
return fetch(`${moviesUrl}&query=${query}`).then((movies) => movies.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.
is the fetch working? because in the demo it's not.
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.
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.
Team members:
*Mahmoud Mansour
*Zainab Saud
*Shadan Abdulkarim
*Ahmad Duhoki
https://ahmadduhoki.github.io/iraq-bc-movies-project-students/