-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/AppHeader/Bakhat #35
Conversation
I added header component in AppHeader.jsx |
// what goes in here? there is no content in the AppHeader component | ||
// ); | ||
// export default AppHeader; | ||
import Logo from "@/assets/spa-logo.png"; |
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 believe that the correct file is hotel-logo.png rather than spa-logo.png, as we can see in the last step of the issue: "render the hotel's logo in an <img>".
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.
Logo in the may be is incorrect.
…chResults Component/SearchRestults Implementation #35
Thank you Pedro I did change the logo. |
// what goes in here? there is no content in the AppHeader component | ||
// ); | ||
// export default AppHeader; | ||
import Logo from "@/assets/hotel-logo.png"; |
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.
Perfect. Thanks.
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.
The AppHeader component implementation matches with the issue's requirement.
Thanks.
<header className="app__header"> | ||
<h1 className="app__heading">CYF Hotel</h1> | ||
</header> | ||
<AppHeader/> |
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.
Well done for this, you have successfully extracted appheader completing step1 +2 of the instructions
const AppHeader = () => ( | ||
<header className="app__header"> | ||
<h1 className="app__heading">CYF Hotel</h1> | ||
<img src={Logo} alt="main image" /> |
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.
This alt text is not descriptive at all.
When writing alt text, try to imagine a blind person listening to it. Does it accurately descibe the image ?
// what goes in here? there is no content in the AppHeader component | ||
// ); | ||
// export default AppHeader; | ||
import Logo from "@/assets/hotel-logo.png"; |
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 the @ symbol here for imports
return true; | ||
}); | ||
|
||
test('renders AppHeader component', () => { |
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.
using test here is fine, but it looks inconsistent using "test" in one section and "it" in another. It is always best to be consistent with your code
It is also best to keep your PRs consistent without saying who did what specifically as this is a collaborative project |
Learners, PR Template
Self checklist
Changelist
I added header component.
Questions