Merged in fix/SW-1917-mobile-booking-codes-map- (pull request #1951)
Fix: SW-1917 Displayed booking code price in map card * Fix: SW-1917 Displayed booking code price in map card Approved-by: Niclas Edenvin
This commit is contained in:
@@ -37,6 +37,7 @@ export default function ListingHotelCardDialog({
|
|||||||
const { data: session } = useSession()
|
const { data: session } = useSession()
|
||||||
const isUserLoggedIn = isValidClientSession(session)
|
const isUserLoggedIn = isValidClientSession(session)
|
||||||
const {
|
const {
|
||||||
|
bookingCode,
|
||||||
name,
|
name,
|
||||||
publicPrice,
|
publicPrice,
|
||||||
memberPrice,
|
memberPrice,
|
||||||
@@ -97,7 +98,7 @@ export default function ListingHotelCardDialog({
|
|||||||
</Caption>
|
</Caption>
|
||||||
)}
|
)}
|
||||||
<div className={styles.listingPrices}>
|
<div className={styles.listingPrices}>
|
||||||
{publicPrice && !isUserLoggedIn && memberPrice && (
|
{publicPrice && !isUserLoggedIn && memberPrice ? (
|
||||||
<>
|
<>
|
||||||
<Subtitle type="two">
|
<Subtitle type="two">
|
||||||
{publicPrice} {currency}
|
{publicPrice} {currency}
|
||||||
@@ -105,6 +106,13 @@ export default function ListingHotelCardDialog({
|
|||||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||||
{memberPrice && <Caption>/</Caption>}
|
{memberPrice && <Caption>/</Caption>}
|
||||||
</>
|
</>
|
||||||
|
) : (
|
||||||
|
bookingCode &&
|
||||||
|
publicPrice && (
|
||||||
|
<Subtitle type="two" color="red">
|
||||||
|
{publicPrice} {currency}
|
||||||
|
</Subtitle>
|
||||||
|
)
|
||||||
)}
|
)}
|
||||||
{memberPrice && (
|
{memberPrice && (
|
||||||
<Subtitle type="two" color="red">
|
<Subtitle type="two" color="red">
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
.bookingCodeFilter {
|
.bookingCodeFilter {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog {
|
.dialog {
|
||||||
@@ -48,12 +47,6 @@
|
|||||||
box-shadow: inset 0 0 0 8px var(--Surface-UI-Fill-Active);
|
box-shadow: inset 0 0 0 8px var(--Surface-UI-Fill-Active);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 767px) {
|
|
||||||
.bookingCodeFilter {
|
|
||||||
margin-bottom: var(--Space-x3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.modalOverlay {
|
.modalOverlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
@@ -101,6 +94,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 768px) {
|
@media screen and (min-width: 768px) {
|
||||||
|
.bookingCodeFilter {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.radioGroup {
|
.radioGroup {
|
||||||
padding: var(--Space-x1);
|
padding: var(--Space-x1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,7 +173,9 @@ export default function SelectHotelContent({
|
|||||||
{bookingCode &&
|
{bookingCode &&
|
||||||
isBookingCodeRateAvailable &&
|
isBookingCodeRateAvailable &&
|
||||||
isRegularRateAvailable ? (
|
isRegularRateAvailable ? (
|
||||||
<BookingCodeFilter />
|
<div className={styles.bookingCodeFilter}>
|
||||||
|
<BookingCodeFilter />
|
||||||
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.container .closeButton {
|
.container .closeButton {
|
||||||
pointer-events: initial;
|
pointer-events: initial;
|
||||||
box-shadow: var(--button-box-shadow);
|
box-shadow: var(--button-box-shadow);
|
||||||
gap: var(--Spacing-x-half);
|
gap: var(--Space-x05);
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15,8 +15,8 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: var(--Base-Surface-Secondary-light-Normal);
|
background-color: var(--Base-Surface-Secondary-light-Normal);
|
||||||
padding: 0 var(--Spacing-x2);
|
padding: var(--Space-x025) var(--Space-x2);
|
||||||
height: 44px;
|
min-height: 44px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container .listingContainer .filterContainer > button {
|
.container .listingContainer .filterContainer > button {
|
||||||
@@ -31,6 +31,10 @@
|
|||||||
color: var(--Component-Button-Brand-Secondary-On-fill-Default);
|
color: var(--Component-Button-Brand-Secondary-On-fill-Default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bookingCodeFilter {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.container .closeButton {
|
.container .closeButton {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -41,7 +45,7 @@
|
|||||||
|
|
||||||
.listingContainer {
|
.listingContainer {
|
||||||
background-color: var(--Base-Surface-Secondary-light-Normal);
|
background-color: var(--Base-Surface-Secondary-light-Normal);
|
||||||
padding: var(--Spacing-x3) var(--Spacing-x4) var(--Spacing-x3)
|
padding: var(--Space-x3) var(--Space-x4) var(--Space-x3)
|
||||||
var(--Layout-Tablet-Margin-Margin-min);
|
var(--Layout-Tablet-Margin-Margin-min);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
min-width: 420px;
|
min-width: 420px;
|
||||||
@@ -54,20 +58,20 @@
|
|||||||
|
|
||||||
.filterContainer {
|
.filterContainer {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding: 0 0 var(--Spacing-x1);
|
padding: 0 0 var(--Space-x1);
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skeletonContainer {
|
.skeletonContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--Spacing-x2);
|
gap: var(--Space-x2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1367px) {
|
@media (min-width: 1367px) {
|
||||||
.listingContainer {
|
.listingContainer {
|
||||||
padding: var(--Spacing-x3) var(--Spacing-x4) var(--Spacing-x3)
|
padding: var(--Space-x3) var(--Space-x4) var(--Space-x3)
|
||||||
var(--Layout-Desktop-Margin-Margin-min);
|
var(--Layout-Desktop-Margin-Margin-min);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user