Merged in chore/cleanup-scandic-web (pull request #2831)
chore: Cleanup scandic-web * Remove unused files * Remove unused and add missing packages * Remove unused exports Approved-by: Linus Flood
This commit is contained in:
@@ -149,6 +149,7 @@ export function setFacilityCardGrids(
|
||||
SidepeekSlugs.wellness,
|
||||
wellnessTitle
|
||||
)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
facilities.findIndex((f) => f === facility) % 2 === 0
|
||||
? grid.unshift(card)
|
||||
: grid.push(card)
|
||||
@@ -164,6 +165,7 @@ export function setFacilityCardGrids(
|
||||
SidepeekSlugs.meetings,
|
||||
MeetingsHeading.Default
|
||||
)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
facilities.findIndex((f) => f === facility) % 2 === 0
|
||||
? grid.unshift(card)
|
||||
: grid.push(card)
|
||||
@@ -179,6 +181,7 @@ export function setFacilityCardGrids(
|
||||
SidepeekSlugs.restaurant,
|
||||
restaurantTitle
|
||||
)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
facilities.findIndex((f) => f === facility) % 2 === 0
|
||||
? grid.unshift(card)
|
||||
: grid.push(card)
|
||||
@@ -214,7 +217,7 @@ function getRestaurantHeading(amenities: Amenities): RestaurantHeadings {
|
||||
return RestaurantHeadings.breakfastRestaurant
|
||||
}
|
||||
|
||||
export function getWellnessHeading(
|
||||
function getWellnessHeading(
|
||||
healthFacilities: HealthFacilities
|
||||
): WellnessHeadings | undefined {
|
||||
// For now return a generic message for all
|
||||
|
||||
@@ -17,13 +17,8 @@ import type { Dayjs } from "dayjs"
|
||||
export {
|
||||
getEarliestExpirationDate,
|
||||
getFirstRedeemableCoupon,
|
||||
getReedemableCoupons,
|
||||
isOnSiteTierReward,
|
||||
isRestaurantOnSiteTierReward,
|
||||
isRestaurantReward,
|
||||
isTierType,
|
||||
isValidRewardId,
|
||||
redeemLocationIsOnSite,
|
||||
}
|
||||
|
||||
function isValidRewardId(id: string): id is RewardId {
|
||||
|
||||
@@ -2,24 +2,8 @@
|
||||
|
||||
import { trackEvent } from "@scandic-hotels/tracking/base"
|
||||
|
||||
import type { LowestRoomPriceEvent } from "@scandic-hotels/tracking/types"
|
||||
import type { BreakfastPackages } from "@scandic-hotels/trpc/routers/hotels/output"
|
||||
|
||||
export function trackLowestRoomPrice(event: LowestRoomPriceEvent) {
|
||||
trackEvent({
|
||||
event: "lowestRoomPrice",
|
||||
hotelInfo: {
|
||||
hotelId: event.hotelId,
|
||||
arrivalDate: event.arrivalDate,
|
||||
departureDate: event.departureDate,
|
||||
},
|
||||
viewItemInfo: {
|
||||
lowestPrice: event.lowestPrice,
|
||||
currency: event.currency,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// Tracking for sections of booking flow enter-details page
|
||||
export function trackBedSelection(bedType: string) {
|
||||
trackEvent({
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
export {
|
||||
trackBedSelection,
|
||||
trackBreakfastSelection,
|
||||
trackLowestRoomPrice,
|
||||
} from "./booking"
|
||||
export { trackAccordionClick, trackOpenSidePeekEvent } from "./componentEvents"
|
||||
export { trackHotelMapClick, trackHotelTabClick } from "./hotelPage"
|
||||
export { trackCancelStay, trackMyStayPageLink } from "./myStay"
|
||||
@@ -13,8 +8,4 @@ export {
|
||||
} from "./navigation"
|
||||
export { trackPaymentEvent, trackUpdatePaymentMethod } from "./payment"
|
||||
export { trackClick } from "@scandic-hotels/tracking/base"
|
||||
export {
|
||||
createSDKPageObject,
|
||||
trackPageView,
|
||||
trackPageViewStart,
|
||||
} from "@scandic-hotels/tracking/pageview"
|
||||
export { trackPageViewStart } from "@scandic-hotels/tracking/pageview"
|
||||
|
||||
Reference in New Issue
Block a user