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 { 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 {
|
||||
clearPaymentInfoSessionStorage,
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useEffect } from "react"
|
||||
import { hotelreservation } from "@scandic-hotels/common/constants/routes/hotelReservation"
|
||||
|
||||
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
|
||||
|
||||
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 { detailsStorageName } from "."
|
||||
import { detailsStorageName } from "./consts"
|
||||
|
||||
import type { User } from "@scandic-hotels/trpc/types/user"
|
||||
|
||||
|
||||
@@ -35,8 +35,6 @@ const defaultGuestState = {
|
||||
zipCode: "",
|
||||
}
|
||||
|
||||
export const detailsStorageName = "rooms-details-storage"
|
||||
|
||||
export type EnterDetailsStore = ReturnType<typeof createDetailsStore>
|
||||
export function createDetailsStore(
|
||||
initialState: InitialState,
|
||||
|
||||
Reference in New Issue
Block a user