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 Calculate Duration #7

Open
1 task
SallyMcGrath opened this issue Dec 22, 2023 · 0 comments
Open
1 task

Feature Calculate Duration #7

SallyMcGrath opened this issue Dec 22, 2023 · 0 comments
Labels
♟️ Dependent ticket This ticket depends on something else being completed first this sprint 🧩 Feature 🏕 Priority Mandatory This work is expected 🦑 Size Large 4-8 hours 📅 Week 1 Assigned during Week 1 of this module

Comments

@SallyMcGrath
Copy link
Member

Instructions:

Dependent ticket : complete #6 before beginning this

Add another column to your <SearchResults /> table which shows the number of nights a guest is staying.

Hint: Try installing the day.js library (you'll need to install it with npm install dayjs --save) and using the .diff() method to compare dates.

Test:

  • Each booking in your table should show the number of nights in a separate column. For example, Mr John Doe has a booking for 2 nights.
@github-project-automation github-project-automation bot moved this to 📋 Backlog in React Module Project Dec 22, 2023
@SallyMcGrath SallyMcGrath added 📅 Week 1 Assigned during Week 1 of this module 🏕 Priority Mandatory This work is expected 🐂 Size Medium 1-4 hours 🦑 Size Large 4-8 hours 🧩 Feature ♟️ Dependent ticket This ticket depends on something else being completed first this sprint and removed 🐂 Size Medium 1-4 hours labels Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♟️ Dependent ticket This ticket depends on something else being completed first this sprint 🧩 Feature 🏕 Priority Mandatory This work is expected 🦑 Size Large 4-8 hours 📅 Week 1 Assigned during Week 1 of this module
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant