Merge remote-tracking branch 'origin/develop' into feat/SW-415-select-room-card

This commit is contained in:
Pontus Dreij
2024-10-10 10:58:04 +02:00
4 changed files with 29 additions and 9 deletions

View File

@@ -1,5 +1,7 @@
.layout { .layout {
min-height: 100dvh; min-height: 100dvh;
max-width: var(--max-width);
margin: 0 auto;
background-color: var(--Base-Background-Primary-Normal); background-color: var(--Base-Background-Primary-Normal);
max-width: var(--max-width); max-width: var(--max-width);
margin: 0 auto; margin: 0 auto;

View File

@@ -18,8 +18,6 @@ export default function RoomSelection({
const searchParams = useSearchParams() const searchParams = useSearchParams()
const intl = useIntl() const intl = useIntl()
console.log(roomConfigurations)
function handleSubmit(e: React.FormEvent<HTMLFormElement>) { function handleSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault() e.preventDefault()
const queryParams = new URLSearchParams(searchParams) const queryParams = new URLSearchParams(searchParams)
@@ -37,6 +35,15 @@ export default function RoomSelection({
> >
<ul className={styles.roomList}> <ul className={styles.roomList}>
{roomConfigurations.roomConfigurations.map((roomConfiguration) => ( {roomConfigurations.roomConfigurations.map((roomConfiguration) => (
<li key={roomConfiguration.roomType}>
<form
method="GET"
action={`select-bed?${searchParams}`}
onSubmit={handleSubmit}
>
<ul className={styles.roomList}>
{roomConfigurations.roomConfigurations.map(
(roomConfiguration) => (
<li key={roomConfiguration.roomType}> <li key={roomConfiguration.roomType}>
<RoomCard <RoomCard
rateDefinitions={roomConfigurations.rateDefinitions} rateDefinitions={roomConfigurations.rateDefinitions}
@@ -44,6 +51,17 @@ export default function RoomSelection({
roomCategories={roomCategories} roomCategories={roomCategories}
/> />
</li> </li>
)
)}
</ul>
<div className={styles.summary}>
This is summary
<Button type="submit" size="small" theme="primaryDark">
{intl.formatMessage({ id: "Choose room" })}
</Button>
</div>
</form>
</li>
))} ))}
</ul> </ul>
<div className={styles.summary}> <div className={styles.summary}>

View File

@@ -20,7 +20,6 @@
"Approx.": "Ca.", "Approx.": "Ca.",
"Are you sure you want to remove the card ending with {lastFourDigits} from your member profile?": "Er du sikker på, at du vil fjerne kortet, der slutter me {lastFourDigits} fra din medlemsprofil?", "Are you sure you want to remove the card ending with {lastFourDigits} from your member profile?": "Er du sikker på, at du vil fjerne kortet, der slutter me {lastFourDigits} fra din medlemsprofil?",
"Arrival date": "Ankomstdato", "Arrival date": "Ankomstdato",
"as of today": "pr. dags dato",
"As our": "Som vores {level}", "As our": "Som vores {level}",
"As our Close Friend": "Som vores nære ven", "As our Close Friend": "Som vores nære ven",
"At latest": "Senest", "At latest": "Senest",
@@ -217,6 +216,7 @@
"Please enter a valid phone number": "Indtast venligst et gyldigt telefonnummer", "Please enter a valid phone number": "Indtast venligst et gyldigt telefonnummer",
"points": "Point", "points": "Point",
"Points": "Point", "Points": "Point",
"points": "Point",
"Points being calculated": "Point udregnes", "Points being calculated": "Point udregnes",
"Points earned prior to May 1, 2021": "Point optjent inden 1. maj 2021", "Points earned prior to May 1, 2021": "Point optjent inden 1. maj 2021",
"Points may take up to 10 days to be displayed.": "Det kan tage op til 10 dage at få vist point.", "Points may take up to 10 days to be displayed.": "Det kan tage op til 10 dage at få vist point.",

View File

@@ -134,7 +134,7 @@
"Image gallery": "Bildgalleri", "Image gallery": "Bildgalleri",
"Included": "Inkluderad", "Included": "Inkluderad",
"It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Det gick inte att hantera dina kommunikationsinställningar just nu, försök igen senare eller kontakta supporten om problemet kvarstår.", "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.": "Det gick inte att hantera dina kommunikationsinställningar just nu, försök igen senare eller kontakta supporten om problemet kvarstår.",
"Join at no cost": "Gå med utan kostnad",
"Join Scandic Friends": "Gå med i Scandic Friends", "Join Scandic Friends": "Gå med i Scandic Friends",
"King bed": "King size-säng", "King bed": "King size-säng",
"Language": "Språk", "Language": "Språk",