Merged in feat/sw-3473-remove-tracking-context (pull request #2843)
feat(SW-3473): Rework booking-flow tracking provider * Remove tracking context and import instead * Remove unused file Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
selectHotelMap,
|
||||
selectRate,
|
||||
} from "@scandic-hotels/common/constants/routes/hotelReservation"
|
||||
import { trackBookingSearchClick } from "@scandic-hotels/tracking/booking"
|
||||
import { SEARCH_TYPE_REDEMPTION } from "@scandic-hotels/trpc/constants/booking"
|
||||
|
||||
import useLang from "../../../hooks/useLang"
|
||||
@@ -17,7 +18,6 @@ import {
|
||||
BookingCodeFilterEnum,
|
||||
useBookingCodeFilterStore,
|
||||
} from "../../../stores/bookingCode-filter"
|
||||
import { useTrackingContext } from "../../../trackingContext"
|
||||
import { serializeBookingSearchParams } from "../../../utils/url"
|
||||
import FormContent, { BookingWidgetFormContentSkeleton } from "./FormContent"
|
||||
import { bookingWidgetVariants } from "./variants"
|
||||
@@ -38,7 +38,6 @@ export default function Form({ type, onClose }: BookingWidgetFormProps) {
|
||||
const pathname = usePathname()
|
||||
const lang = useLang()
|
||||
const [isPending, startTransition] = useTransition()
|
||||
const { trackBookingSearchClick } = useTrackingContext()
|
||||
const setBookingCodeFilter = useBookingCodeFilterStore(
|
||||
(state) => state.setFilter
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user