Merged in chore/export-name-from-file (pull request #3439)
chore(storagecleaner): import from file to avoid huge footprints on every page * chore(storagecleaner): import from file to avoid huge footprints on every page Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -8,7 +8,7 @@ import { LoadingSpinner } from "@scandic-hotels/design-system/LoadingSpinner"
|
|||||||
import { trackEvent } from "@scandic-hotels/tracking/base"
|
import { trackEvent } from "@scandic-hotels/tracking/base"
|
||||||
import { trackPaymentEvent } from "@scandic-hotels/tracking/payment"
|
import { trackPaymentEvent } from "@scandic-hotels/tracking/payment"
|
||||||
|
|
||||||
import { detailsStorageName } from "../../../../stores/enter-details"
|
import { detailsStorageName } from "../../../../stores/enter-details/consts"
|
||||||
import { serializeBookingSearchParams } from "../../../../utils/url"
|
import { serializeBookingSearchParams } from "../../../../utils/url"
|
||||||
import {
|
import {
|
||||||
clearPaymentInfoSessionStorage,
|
clearPaymentInfoSessionStorage,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { useEffect } from "react"
|
|||||||
import { hotelreservation } from "@scandic-hotels/common/constants/routes/hotelReservation"
|
import { hotelreservation } from "@scandic-hotels/common/constants/routes/hotelReservation"
|
||||||
|
|
||||||
import useLang from "../../hooks/useLang"
|
import useLang from "../../hooks/useLang"
|
||||||
import { detailsStorageName } from "../../stores/enter-details"
|
import { detailsStorageName } from "../../stores/enter-details/consts"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cleanup component to make sure no stale data is left
|
* Cleanup component to make sure no stale data is left
|
||||||
|
|||||||
1
packages/booking-flow/lib/stores/enter-details/consts.ts
Normal file
1
packages/booking-flow/lib/stores/enter-details/consts.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export const detailsStorageName = "rooms-details-storage"
|
||||||
@@ -2,7 +2,7 @@ import { parsePhoneNumberFromString } from "libphonenumber-js"
|
|||||||
|
|
||||||
import { logger } from "@scandic-hotels/common/logger"
|
import { logger } from "@scandic-hotels/common/logger"
|
||||||
|
|
||||||
import { detailsStorageName } from "."
|
import { detailsStorageName } from "./consts"
|
||||||
|
|
||||||
import type { User } from "@scandic-hotels/trpc/types/user"
|
import type { User } from "@scandic-hotels/trpc/types/user"
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,6 @@ const defaultGuestState = {
|
|||||||
zipCode: "",
|
zipCode: "",
|
||||||
}
|
}
|
||||||
|
|
||||||
export const detailsStorageName = "rooms-details-storage"
|
|
||||||
|
|
||||||
export type EnterDetailsStore = ReturnType<typeof createDetailsStore>
|
export type EnterDetailsStore = ReturnType<typeof createDetailsStore>
|
||||||
export function createDetailsStore(
|
export function createDetailsStore(
|
||||||
initialState: InitialState,
|
initialState: InitialState,
|
||||||
|
|||||||
Reference in New Issue
Block a user