Merged in chore/sw-3474-remove-unused-booking-flow-exports (pull request #2858)
chore: (SW-3474): Remove unused exports from booking-flow * Remove unused exports from booking-flow Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { BookingWidgetSkeleton } from "@scandic-hotels/booking-flow/BookingWidget/Skeleton"
|
||||
import { BookingWidgetSkeleton } from "@scandic-hotels/booking-flow/BookingWidget"
|
||||
|
||||
// This file is crucial for displaying a loading
|
||||
// state immediately in the booking flow.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SelectHotelSkeleton } from "@scandic-hotels/booking-flow/components/SelectHotel"
|
||||
import { AlternativeHotelsPageSkeleton } from "@scandic-hotels/booking-flow/pages/AlternativeHotelsPage"
|
||||
|
||||
export default function AlternativeHotelsLoading() {
|
||||
return <SelectHotelSkeleton />
|
||||
return <AlternativeHotelsPageSkeleton />
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SelectHotelSkeleton } from "@scandic-hotels/booking-flow/components/SelectHotel"
|
||||
import { SelectHotelPageSkeleton } from "@scandic-hotels/booking-flow/pages/SelectHotelPage"
|
||||
|
||||
export default function SelectHotelLoading() {
|
||||
return <SelectHotelSkeleton />
|
||||
return <SelectHotelPageSkeleton />
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SelectRateSkeleton } from "@scandic-hotels/booking-flow/components/SelectRate"
|
||||
import { SelectRatePageSkeleton } from "@scandic-hotels/booking-flow/pages/SelectRatePage"
|
||||
|
||||
export default function LoadingSelectRate() {
|
||||
return <SelectRateSkeleton />
|
||||
return <SelectRatePageSkeleton />
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BookingWidgetSkeleton } from "@scandic-hotels/booking-flow/BookingWidget/Skeleton"
|
||||
import { BookingWidgetSkeleton } from "@scandic-hotels/booking-flow/BookingWidget"
|
||||
|
||||
// This file is crucial for displaying a loading
|
||||
// state immediately in the booking flow.
|
||||
|
||||
@@ -14,6 +14,8 @@ import type { VariantProps } from "class-variance-authority"
|
||||
import type { BookingSearchType } from "../../misc/searchType"
|
||||
import type { bookingWidgetVariants } from "./BookingWidgetForm/variants"
|
||||
|
||||
export { BookingWidgetSkeleton } from "./Skeleton"
|
||||
|
||||
export type GuestsRoom = {
|
||||
adults: number
|
||||
childrenInRoom: Child[]
|
||||
|
||||
@@ -18,6 +18,8 @@ import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
|
||||
import type { NextSearchParams } from "../types"
|
||||
|
||||
export { SelectHotelSkeleton as AlternativeHotelsPageSkeleton } from "../components/SelectHotel"
|
||||
|
||||
export async function AlternativeHotelsPage({
|
||||
lang,
|
||||
searchParams,
|
||||
|
||||
@@ -17,6 +17,8 @@ import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
|
||||
import type { NextSearchParams } from "../types"
|
||||
|
||||
export { SelectHotelSkeleton as SelectHotelPageSkeleton } from "../components/SelectHotel"
|
||||
|
||||
export async function SelectHotelPage({
|
||||
lang,
|
||||
searchParams,
|
||||
|
||||
@@ -15,6 +15,8 @@ import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
|
||||
import type { NextSearchParams } from "../types"
|
||||
|
||||
export { SelectRateSkeleton as SelectRatePageSkeleton } from "../components/SelectRate"
|
||||
|
||||
const rateTypeRegex = {
|
||||
ARB: /(^B[a-z]{3}\d{6}$)/,
|
||||
VOUCHER: /(^VO[0-9a-z]*$)/,
|
||||
|
||||
@@ -16,39 +16,27 @@
|
||||
"./BookingWidget": "./lib/components/BookingWidget/index.tsx",
|
||||
"./BookingWidget/BookingWidgetForm/FormContent/Search": "./lib/components/BookingWidget/BookingWidgetForm/FormContent/Search/index.tsx",
|
||||
"./BookingWidget/FloatingBookingWidget": "./lib/components/BookingWidget/FloatingBookingWidget/index.tsx",
|
||||
"./BookingWidget/Skeleton": "./lib/components/BookingWidget/Skeleton.tsx",
|
||||
"./components/AdditionalAmenities": "./lib/components/AdditionalAmenities/index.tsx",
|
||||
"./components/AddToCalendar": "./lib/components/AddToCalendar/index.tsx",
|
||||
"./components/BookingConfirmation/Header/Actions/helpers": "./lib/components/BookingConfirmation/Header/Actions/helpers.ts",
|
||||
"./components/EnterDetails/enterDetailsErrors": "./lib/components/EnterDetails/enterDetailsErrors.ts",
|
||||
"./components/EnterDetails/Payment/helpers": "./lib/components/EnterDetails/Payment/helpers.ts",
|
||||
"./components/EnterDetails/Payment/PaymentCallback/HandleErrorCallback": "./lib/components/EnterDetails/Payment/PaymentCallback/HandleErrorCallback.tsx",
|
||||
"./components/EnterDetails/Payment/PaymentCallback/HandleSuccessCallback": "./lib/components/EnterDetails/Payment/PaymentCallback/HandleSuccessCallback.tsx",
|
||||
"./components/EnterDetails/Payment/PaymentCallback/helpers": "./lib/components/EnterDetails/Payment/PaymentCallback/helpers.ts",
|
||||
"./components/EnterDetails/StorageCleaner": "./lib/components/EnterDetails/StorageCleaner.tsx",
|
||||
"./components/PriceDetailsModal": "./lib/components/PriceDetailsModal/index.tsx",
|
||||
"./components/SelectHotel": "./lib/components/SelectHotel/index.tsx",
|
||||
"./components/SelectRate": "./lib/components/SelectRate/index.tsx",
|
||||
"./components/SidePeekAccordions/BreakfastAccordionItem": "./lib/components/SidePeekAccordions/BreakfastAccordionItem.tsx",
|
||||
"./components/SidePeekAccordions/CheckInCheckOutAccordionItem": "./lib/components/SidePeekAccordions/CheckInCheckOutAccordionItem.tsx",
|
||||
"./components/SidePeekAccordions/ParkingAccordionItem": "./lib/components/SidePeekAccordions/ParkingAccordionItem.tsx",
|
||||
"./global.d.ts": "./global.d.ts",
|
||||
"./hooks/useHandleBookingStatus": "./lib/hooks/useHandleBookingStatus.ts",
|
||||
"./hooks/useSearchHistory": "./lib/hooks/useSearchHistory.ts",
|
||||
"./pages/*": "./lib/pages/*.tsx",
|
||||
"./searchType": "./lib/misc/searchType.ts",
|
||||
"./stores/enter-details/types": "./lib/stores/enter-details/types.ts",
|
||||
"./stores/hotels-map": "./lib/stores/hotels-map.ts",
|
||||
"./stores/booking-confirmation": "./lib/stores/booking-confirmation/index.ts",
|
||||
"./types/components/findMyBooking/additionalInfoCookieValue": "./lib/types/components/findMyBooking/additionalInfoCookieValue.ts",
|
||||
"./types/components/selectRate/selectRate": "./lib/types/components/selectRate/selectRate.ts",
|
||||
"./types/stores/booking-confirmation": "./lib/types/stores/booking-confirmation.ts",
|
||||
"./types/stores/rates": "./lib/types/stores/rates.ts",
|
||||
"./utils/getRoomFeatureDescription": "./lib/utils/getRoomFeatureDescription.ts",
|
||||
"./utils/isSameBooking": "./lib/utils/isSameBooking.ts",
|
||||
"./utils/nuqs": "./lib/utils/nuqs.ts",
|
||||
"./utils/SelectRate": "./lib/utils/SelectRate/index.tsx",
|
||||
"./utils/specialRoomType": "./lib/utils/specialRoomType.ts",
|
||||
"./utils/url": "./lib/utils/url.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user