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

Feature: Add more pizzas #21

Closed
HadikaMalik opened this issue Feb 24, 2024 · 0 comments
Closed

Feature: Add more pizzas #21

HadikaMalik opened this issue Feb 24, 2024 · 0 comments

Comments

@HadikaMalik
Copy link
Owner

From React-Module-Project created by SallyMcGrath: CodeYourFuture#10

Dependent ticket: complete and merge #9 before starting this ticket

Instructions:

In the <Restaurant /> component, create a new function named orderOne. The orderOne function doesn't take any parameters and should use the setOrders function to increment the orders state variable by 1. Then, add a onClick handler to the Add <button> that calls the orderOne function when it's being clicked.

Test:

When the Add button is clicked, the number of pizzas increases by 1

@HadikaMalik HadikaMalik moved this from 📋 Backlog to 🔖 Ready in React-Hotel-Website-Planner Mar 2, 2024
@HadikaMalik HadikaMalik moved this from 🔖 Ready to 🏗 In progress in React-Hotel-Website-Planner Mar 2, 2024
@HadikaMalik HadikaMalik moved this from 🏗 In progress to 🔖 Ready in React-Hotel-Website-Planner Mar 2, 2024
@PERicci PERicci moved this from 🔖 Ready to 👀 In review in React-Hotel-Website-Planner Mar 5, 2024
@PERicci PERicci moved this from 👀 In review to 🔖 Ready in React-Hotel-Website-Planner Mar 5, 2024
@pedram-am pedram-am moved this from 🔖 Ready to 🏗 In progress in React-Hotel-Website-Planner Mar 5, 2024
@pedram-am pedram-am moved this from 🏗 In progress to 👀 In review in React-Hotel-Website-Planner Mar 6, 2024
@HadikaMalik HadikaMalik moved this from 👀 In review to ✅ Done in React-Hotel-Website-Planner Mar 6, 2024
@PERicci PERicci closed this as completed Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants