Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -5,10 +5,10 @@ import { Dialog, Modal } from "react-aria-components"
|
||||
import { useIntl } from "react-intl"
|
||||
import { useMediaQuery } from "usehooks-ts"
|
||||
|
||||
import { findMyBooking } from "@scandic-hotels/common/constants/routes/findMyBooking"
|
||||
import { customerService } from "@scandic-hotels/common/constants/routes/customerService"
|
||||
import { findMyBookingRoutes } from "@scandic-hotels/common/constants/routes/findMyBookingRoutes"
|
||||
import { IconName } from "@scandic-hotels/design-system/Icons/iconName"
|
||||
|
||||
import { customerService } from "@/constants/webHrefs"
|
||||
import useDropdownStore from "@/stores/main-menu"
|
||||
|
||||
import LanguageSwitcher from "@/components/LanguageSwitcher"
|
||||
@@ -71,7 +71,7 @@ export default function MobileMenu({
|
||||
defaultMessage: "Open menu",
|
||||
})
|
||||
|
||||
const findMyBookingUrl = findMyBooking[lang]
|
||||
const findMyBookingUrl = findMyBookingRoutes[lang]
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -4,13 +4,13 @@ import { useSession } from "next-auth/react"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { MembershipLevelEnum } from "@scandic-hotels/common/constants/membershipLevels"
|
||||
import { useLazyPathname } from "@scandic-hotels/common/hooks/useLazyPathname"
|
||||
import { Avatar } from "@scandic-hotels/design-system/Avatar"
|
||||
import { LoginButton } from "@scandic-hotels/design-system/LoginButton"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
import { trpc } from "@scandic-hotels/trpc/client"
|
||||
|
||||
import useLang from "@/hooks/useLang"
|
||||
import { useLazyPathname } from "@/hooks/useLazyPathname"
|
||||
import { isValidClientSession } from "@/utils/clientSession"
|
||||
import { trackLoginClick } from "@/utils/tracking"
|
||||
|
||||
@@ -73,7 +73,7 @@ export default function MyPagesMenuWrapper() {
|
||||
onClick={() => {
|
||||
trackLoginClick("top menu")
|
||||
}}
|
||||
pathName={loginPathname}
|
||||
redirectTo={loginPathname}
|
||||
trackingId="loginStartNewTopMenu"
|
||||
>
|
||||
<Avatar />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { findMyBooking } from "@scandic-hotels/common/constants/routes/findMyBooking"
|
||||
import { findMyBookingRoutes } from "@scandic-hotels/common/constants/routes/findMyBookingRoutes"
|
||||
import { IconName } from "@scandic-hotels/design-system/Icons/iconName"
|
||||
import SkeletonShimmer from "@scandic-hotels/design-system/SkeletonShimmer"
|
||||
|
||||
@@ -26,7 +26,7 @@ export default async function TopMenu() {
|
||||
}
|
||||
|
||||
const lang = await getLang()
|
||||
const findMyBookingUrl = findMyBooking[lang]
|
||||
const findMyBookingUrl = findMyBookingRoutes[lang]
|
||||
|
||||
return (
|
||||
<div className={styles.topMenu}>
|
||||
|
||||
Reference in New Issue
Block a user