Merged in feat/SW-1889 (pull request #1670)

Feat/SW-1889

* fix: remove download invoice from confirmation page

* feat: remove EnterDetails Accordions


Approved-by: Simon.Emanuelsson
This commit is contained in:
Arvid Norlin
2025-03-31 13:14:11 +00:00
parent 93aafe5525
commit 5cff2e5f36
22 changed files with 205 additions and 513 deletions

View File

@@ -25,7 +25,7 @@ export default function SelectedRoom() {
const lang = useLang()
const router = useRouter()
const [isPending, startTransition] = useTransition()
const { room, roomNr } = useRoomContext()
const { room, idx } = useRoomContext()
const { hotelId, searchParamsStr } = useEnterDetailsStore((state) => ({
hotelId: state.booking.hotelId,
searchParamsStr: state.searchParamString,
@@ -33,8 +33,8 @@ export default function SelectedRoom() {
function changeRoom() {
const searchParams = new URLSearchParams(searchParamsStr)
// rooms are index based, thus need for subtraction
searchParams.set("modifyRateIndex", `${roomNr - 1}`)
searchParams.set("modifyRateIndex", `${idx}`)
startTransition(() => {
router.push(`${selectRate(lang)}?${searchParams.toString()}`)
})

View File

@@ -41,24 +41,6 @@
align-self: flex-start;
}
.iconWrapper {
position: relative;
}
.circle {
width: 24px;
height: 24px;
border-radius: 100px;
border: 2px solid var(--Base-Border-Inverted);
display: flex;
justify-content: center;
align-items: center;
}
.circle {
background-color: var(--UI-Input-Controls-Fill-Selected);
}
.wrapper[data-available="false"] .circle {
background-color: var(--Base-Surface-Subtle-Hover);
}
@@ -92,14 +74,4 @@
.rate::after {
content: ")";
}
.wrapper:not(:last-child)::after {
position: absolute;
left: 12px;
bottom: 0;
top: var(--Spacing-x7);
height: 100%;
content: "";
border-left: 1px solid var(--Primary-Light-On-Surface-Divider-subtle);
}
}