Open areebsattar opened 5 months ago
Instructions:
Add another column to your <SearchResults /> table which shows the number of nights a guest is staying.
<SearchResults />
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.
npm install dayjs --save
.diff()
Test:
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: