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/dynamic reservation card #269

Merged
merged 6 commits into from
Nov 12, 2024
Merged

Conversation

grabinskij
Copy link
Collaborator

@grabinskij grabinskij commented Nov 3, 2024

I have made reservation dynamic by receiving data from the server and passing it into components. I have also increase z-index in some popups in the productPage to ensure they can overlap the Header.

@grabinskij grabinskij force-pushed the feature/dynamicReservationCard branch from 6e711e8 to 33091b5 Compare November 12, 2024 14:03
@@ -15,8 +15,7 @@ function ReservationCard({
airbnbServiceFee,
longStayDiscount,
nightsCountForDiscount,
onGuestChange,
guestsList,
guestCounts: defaulfGuestCounts,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small typo: "defaulfGuestCounts", should be: "defaultGuestCounts "

infants: 0,
pets: 0
});
const [guestCounts, setGuestCounts] = useState(defaulfGuestCounts || {});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small typo: "defaulfGuestCounts", should be: "defaultGuestCounts "

@grabinskij
Copy link
Collaborator Author

I have fixed it. Thank you!

@grabinskij grabinskij merged commit 2048594 into main Nov 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make booking dynamic
2 participants