Merged in fix/SW-2535-remove-breadcrumbs-select-hotel (pull request #1968)
fix(SW-2535): remove breadcrumbs on select hotel page * fix(SW-2535): remove breadcrumbs on select hotel page Approved-by: Niclas Edenvin
This commit is contained in:
@@ -13,10 +13,6 @@ export function SelectHotelSkeleton({ count = 4 }: Props) {
|
|||||||
<div className={styles.skeletonContainer}>
|
<div className={styles.skeletonContainer}>
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
<div className={styles.headerContent}>
|
<div className={styles.headerContent}>
|
||||||
<div className={styles.breadcrumbs}>
|
|
||||||
<SkeletonShimmer height={"25px"} width={"300px"} />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className={styles.title}>
|
<div className={styles.title}>
|
||||||
<div className={styles.cityInformation}>
|
<div className={styles.cityInformation}>
|
||||||
<SkeletonShimmer height={"25px"} width={"200px"} />
|
<SkeletonShimmer height={"25px"} width={"200px"} />
|
||||||
|
|||||||
@@ -7,21 +7,17 @@ import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
|||||||
|
|
||||||
import { FamilyAndFriendsCodes } from "@/constants/booking"
|
import { FamilyAndFriendsCodes } from "@/constants/booking"
|
||||||
import {
|
import {
|
||||||
alternativeHotels,
|
|
||||||
alternativeHotelsMap,
|
alternativeHotelsMap,
|
||||||
selectHotel,
|
|
||||||
selectHotelMap,
|
selectHotelMap,
|
||||||
} from "@/constants/routes/hotelReservation"
|
} from "@/constants/routes/hotelReservation"
|
||||||
|
|
||||||
import StaticMap from "@/components/Maps/StaticMap"
|
import StaticMap from "@/components/Maps/StaticMap"
|
||||||
import Breadcrumbs from "@/components/TempDesignSystem/Breadcrumbs"
|
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
import TrackingSDK from "@/components/TrackingSDK"
|
import TrackingSDK from "@/components/TrackingSDK"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { getHotelSearchDetails } from "@/utils/hotelSearchDetails"
|
import { getHotelSearchDetails } from "@/utils/hotelSearchDetails"
|
||||||
import { convertObjToSearchParams } from "@/utils/url"
|
|
||||||
|
|
||||||
import FnFNotAllowedAlert from "../FnFNotAllowedAlert/FnFNotAllowedAlert"
|
import FnFNotAllowedAlert from "../FnFNotAllowedAlert/FnFNotAllowedAlert"
|
||||||
import HotelCardListing from "../HotelCardListing"
|
import HotelCardListing from "../HotelCardListing"
|
||||||
@@ -94,48 +90,6 @@ export default async function SelectHotel({
|
|||||||
"country" in city
|
"country" in city
|
||||||
const filterList = getFiltersFromHotels(hotels)
|
const filterList = getFiltersFromHotels(hotels)
|
||||||
|
|
||||||
const convertedSearchParams = convertObjToSearchParams(selectHotelParams)
|
|
||||||
const breadcrumbs = [
|
|
||||||
{
|
|
||||||
title: intl.formatMessage({
|
|
||||||
defaultMessage: "Home",
|
|
||||||
}),
|
|
||||||
href: `/${params.lang}`,
|
|
||||||
uid: "home-page",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: intl.formatMessage({
|
|
||||||
defaultMessage: "Hotel reservation",
|
|
||||||
}),
|
|
||||||
href: `/${params.lang}/hotelreservation`,
|
|
||||||
uid: "hotel-reservation",
|
|
||||||
},
|
|
||||||
isAlternativeFor
|
|
||||||
? {
|
|
||||||
title: intl.formatMessage({
|
|
||||||
defaultMessage: "Alternative hotels",
|
|
||||||
}),
|
|
||||||
href: `${alternativeHotels(params.lang)}/?${convertedSearchParams}`,
|
|
||||||
uid: "alternative-hotels",
|
|
||||||
}
|
|
||||||
: {
|
|
||||||
title: intl.formatMessage({
|
|
||||||
defaultMessage: "Select hotel",
|
|
||||||
}),
|
|
||||||
href: `${selectHotel(params.lang)}/?${convertedSearchParams}`,
|
|
||||||
uid: "select-hotel",
|
|
||||||
},
|
|
||||||
isAlternativeFor
|
|
||||||
? {
|
|
||||||
title: isAlternativeFor.name,
|
|
||||||
uid: isAlternativeFor.id,
|
|
||||||
}
|
|
||||||
: {
|
|
||||||
title: city.name,
|
|
||||||
uid: city.id,
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
const isAllUnavailable = !hotels.length
|
const isAllUnavailable = !hotels.length
|
||||||
const isRedemptionAvailability = redemption
|
const isRedemptionAvailability = redemption
|
||||||
? hotels.some(
|
? hotels.some(
|
||||||
@@ -191,7 +145,6 @@ export default async function SelectHotel({
|
|||||||
<>
|
<>
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
<div className={styles.headerContent}>
|
<div className={styles.headerContent}>
|
||||||
<Breadcrumbs breadcrumbs={breadcrumbs} />
|
|
||||||
<div className={styles.title}>
|
<div className={styles.title}>
|
||||||
<div className={styles.cityInformation}>
|
<div className={styles.cityInformation}>
|
||||||
<Subtitle>
|
<Subtitle>
|
||||||
|
|||||||
@@ -19,10 +19,6 @@
|
|||||||
gap: var(--Spacing-x2);
|
gap: var(--Spacing-x2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerContent nav {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cityInformation {
|
.cityInformation {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -88,19 +84,13 @@
|
|||||||
padding: var(--Spacing-x4) 0 var(--Spacing-x3);
|
padding: var(--Spacing-x4) 0 var(--Spacing-x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerContent nav {
|
|
||||||
display: block;
|
|
||||||
max-width: var(--max-width-navigation);
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sorter {
|
.sorter {
|
||||||
display: block;
|
display: block;
|
||||||
width: 339px;
|
width: 339px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin: var(--Spacing-x3) auto 0;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: var(--max-width-navigation);
|
max-width: var(--max-width-navigation);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -137,8 +127,4 @@
|
|||||||
.skeletonContainer .sideBar {
|
.skeletonContainer .sideBar {
|
||||||
gap: var(--Spacing-x3);
|
gap: var(--Spacing-x3);
|
||||||
}
|
}
|
||||||
.skeletonContainer .breadcrumbs {
|
|
||||||
margin: 0 auto;
|
|
||||||
max-width: var(--max-width-navigation);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user