-
Notifications
You must be signed in to change notification settings - Fork 1
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
NW6 | Fikret Ellek | React-Module-Project | Week-2 | orderType #46
Conversation
✅ Deploy Preview for cyf-react-hotel-project ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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 work!
import "./Order.scss"; | ||
|
||
export default function Order({ orderType }) { | ||
const [orders, setOrders] = useState(0); |
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.
We always create the SetState var to be camel case. So your setorder
should be camel case. Can you change that please?
return ( | ||
<li className="restaurant__item"> | ||
{orderType}: {orders} | ||
<RestaurantButton handleAddOrder={handleAddOrder} /> |
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.
Nice work
</button> | ||
</li> | ||
<Order orderType="Pizzas" /> | ||
<Order orderType="Salads" /> |
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 work!
|
||
expect(updatedPizzaText).toBeInTheDocument(); | ||
expect(updatedText1, updatedText2, updatedText3).toBeInTheDocument(); |
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.
All looking good, tests are really good as well
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.