-
-
Notifications
You must be signed in to change notification settings - Fork 768
London10 - Khalil Alhaydr - CYF-hotel-challenge #614
base: master
Are you sure you want to change the base?
Conversation
Kudos, SonarCloud Quality Gate passed! |
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.
Really great work! only some small ideas/changes.
<div className="CityDives"> | ||
<TouristInfoCards cityId={0} /> | ||
<TouristInfoCards cityId={1} /> | ||
<TouristInfoCards cityId={2} /> |
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 it possible to move these cityIds into a variable rather than each one individually?
<div> | ||
<header className="App-header">CYF Hotel</header>; | ||
<img className="Logo-image" src="https://images.unsplash.com/photo-1615880484746-a134be9a6ecf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8bW91bnRhaW4lMjBob3RlbHxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=500&q=60"></img> | ||
</div> |
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 work, sometimes it is good practice to add 'alt' incase the image doesn't load. More info here.)
@@ -0,0 +1,42 @@ | |||
import React from "react"; | |||
|
|||
const city = [ |
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.
Small thing but up to you it may be better to rename this to 'cities' as it is an array of cities.
return ( | ||
<div className="CitiesDiv"> | ||
<div className="card"> | ||
<img src={city[cityId].src} className="card-img-top" /> |
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 it possible to restructure city[cityId]
so it is called from another level?
No description provided.