areebsattar / My-Coursework-Planner

0 stars 0 forks source link

Feature Calculate Duration #167

Open areebsattar opened 5 months ago

areebsattar commented 5 months ago

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: