Feature Calculate Duration

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

Complete dependent issue #6 first, then locate the table entry point. Review the suggested day.js installation and .diff() documentation, and verify that each booking displays its number of nights in a separate column, including Mr John Doe's two-night example.

Written by the indexing model from the issue text.

Description

♟️ Dependent ticket 🏕 Priority Mandatory 📅 Week 1 🦑 Size Large 🧩 Feature

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.
Dominant language
JavaScript
Stars
1
Forks
28
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeYourFuture/React-Module-Project

All issues in CodeYourFuture/React-Module-Project

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.