feat: populate session storage on submit

This commit is contained in:
Christel Westerberg
2024-10-17 16:07:09 +02:00
parent 5bddaff04d
commit e4617d84ba
5 changed files with 35 additions and 100 deletions

View File

@@ -27,7 +27,6 @@
width: 100%;
border-bottom: 1px solid var(--Primary-Light-On-Surface-Divider-subtle);
padding-bottom: var(--Spacing-x3);
transition: 0.4s ease-out;
grid-template-rows: 2em 0fr;
}
@@ -79,16 +78,3 @@
.content {
overflow: hidden;
}
@keyframes allowOverflow {
0% {
overflow: hidden;
}
100% {
overflow: visible;
}
}
.wrapper[data-open="true"] .content {
animation: allowOverflow 0.4s 0.4s ease;
}

View File

@@ -23,9 +23,12 @@ import {
import { Hotel } from "@/types/hotel"
function getAmenitiesList(hotel: Hotel) {
const detailedAmenities: DetailedAmenity[] = Object.entries(
hotel.hotelFacts.hotelFacilityDetail
).map(([key, value]) => ({ name: key, ...value }))
const detailedAmenities: DetailedAmenity[] = hotel.hotelFacts
.hotelFacilityDetail
? Object.entries(hotel.hotelFacts.hotelFacilityDetail).map(
([key, value]) => ({ name: key, ...value })
)
: []
// Remove Parking facilities since parking accordion is based on hotel.parking
const simpleAmenities = hotel.detailedFacilities.filter(