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

NW6 | Fikret Ellek | React-Module-Project | Week-2 | orderType #46

Merged
merged 12 commits into from
Mar 9, 2024

Conversation

fikretellek
Copy link
Collaborator

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

Copy link

netlify bot commented Mar 9, 2024

Deploy Preview for cyf-react-hotel-project ready!

Name Link
🔨 Latest commit d34c97e
🔍 Latest deploy log https://app.netlify.com/sites/cyf-react-hotel-project/deploys/65ebc1dceb260c00089752e6
😎 Deploy Preview https://deploy-preview-46--cyf-react-hotel-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@fikretellek fikretellek mentioned this pull request Mar 9, 2024
2 tasks
@fikretellek fikretellek linked an issue Mar 9, 2024 that may be closed by this pull request
2 tasks
Copy link
Collaborator

@AltomHussain AltomHussain left a 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);
Copy link
Collaborator

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} />
Copy link
Collaborator

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" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect work!

@RbAvci RbAvci merged commit 0642f48 into main Mar 9, 2024
4 checks passed
@RbAvci RbAvci deleted the Feature/orderType branch March 9, 2024 14:39

expect(updatedPizzaText).toBeInTheDocument();
expect(updatedText1, updatedText2, updatedText3).toBeInTheDocument();
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature orderType
4 participants