Merged in fix/SW-2602-select-hotel-page-booking-code (pull request #1941)
Fix/SW-2602 select hotel page booking code filtering * fix: SW-2602 Fixed booking code filtering * fix: SW-2602 Fixed lint issues Approved-by: Niclas Edenvin
This commit is contained in:
@@ -2,8 +2,10 @@ import { cookies } from "next/headers"
|
|||||||
import { notFound, redirect } from "next/navigation"
|
import { notFound, redirect } from "next/navigation"
|
||||||
import { Suspense } from "react"
|
import { Suspense } from "react"
|
||||||
|
|
||||||
import { BookingErrorCodeEnum } from "@/constants/booking"
|
import {
|
||||||
import { FamilyAndFriendsCodes } from "@/constants/booking"
|
BookingErrorCodeEnum,
|
||||||
|
FamilyAndFriendsCodes,
|
||||||
|
} from "@/constants/booking"
|
||||||
import { selectRate } from "@/constants/routes/hotelReservation"
|
import { selectRate } from "@/constants/routes/hotelReservation"
|
||||||
import {
|
import {
|
||||||
getBreakfastPackages,
|
getBreakfastPackages,
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export default function HotelCardListing({
|
|||||||
: false
|
: false
|
||||||
const showOnlyBookingCodeRates =
|
const showOnlyBookingCodeRates =
|
||||||
isBookingCodeRateAvailable &&
|
isBookingCodeRateAvailable &&
|
||||||
activeCodeFilter !== BookingCodeFilterEnum.Discounted
|
activeCodeFilter === BookingCodeFilterEnum.Discounted
|
||||||
|
|
||||||
const hotels = useMemo(() => {
|
const hotels = useMemo(() => {
|
||||||
const sortedHotels = getSortedHotels({
|
const sortedHotels = getSortedHotels({
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import { setLang } from "@/i18n/serverContext"
|
|||||||
import { getHotelSearchDetails } from "@/utils/hotelSearchDetails"
|
import { getHotelSearchDetails } from "@/utils/hotelSearchDetails"
|
||||||
import { convertSearchParamsToObj } from "@/utils/url"
|
import { convertSearchParamsToObj } from "@/utils/url"
|
||||||
|
|
||||||
import AvailabilityError from "./AvailabilityError"
|
|
||||||
import FnFNotAllowedAlert from "../FnFNotAllowedAlert/FnFNotAllowedAlert"
|
import FnFNotAllowedAlert from "../FnFNotAllowedAlert/FnFNotAllowedAlert"
|
||||||
|
import AvailabilityError from "./AvailabilityError"
|
||||||
import { getValidDates } from "./getValidDates"
|
import { getValidDates } from "./getValidDates"
|
||||||
import { getTracking } from "./tracking"
|
import { getTracking } from "./tracking"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user