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 #30

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

Feature Calculate Duration #30

HadikaMalik opened this issue Feb 24, 2024 · 0 comments

Comments

@HadikaMalik
Copy link
Owner

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

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.
@HadikaMalik HadikaMalik moved this from 📋 Backlog to 🔖 Ready in React-Hotel-Website-Planner Feb 24, 2024
@PERicci PERicci moved this from 🔖 Ready to 📋 Backlog in React-Hotel-Website-Planner Feb 24, 2024
@PERicci PERicci self-assigned this Feb 24, 2024
@PERicci PERicci moved this from 📋 Backlog to 🔖 Ready in React-Hotel-Website-Planner Feb 25, 2024
@PERicci PERicci moved this from 🔖 Ready to 🏗 In progress in React-Hotel-Website-Planner Feb 27, 2024
@PERicci PERicci moved this from 🏗 In progress to 🔖 Ready in React-Hotel-Website-Planner Feb 27, 2024
@PERicci PERicci moved this from 🔖 Ready to 🏗 In progress in React-Hotel-Website-Planner Feb 27, 2024
@PERicci PERicci moved this from 🏗 In progress to 👀 In review in React-Hotel-Website-Planner Feb 27, 2024
@PERicci PERicci moved this from 👀 In review to ✅ Done in React-Hotel-Website-Planner Feb 29, 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

2 participants