Merged in fix/sw-3568-sas-terms-and-conditions-link (pull request #3002)
feat(SW-3568): Use dependency injected link for SF terms on enter details * Use dependency injected link for sf terms Approved-by: Linus Flood
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
|
||||
import { membershipTermsAndConditions } from "@scandic-hotels/common/constants/routes/membershipTermsAndConditions"
|
||||
import { useLazyPathname } from "@scandic-hotels/common/hooks/useLazyPathname"
|
||||
import { formatPrice } from "@scandic-hotels/common/utils/numberFormatting"
|
||||
import Footnote from "@scandic-hotels/design-system/Footnote"
|
||||
@@ -13,6 +12,7 @@ import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
import { trackLoginClick } from "@scandic-hotels/tracking/navigation"
|
||||
|
||||
import { useBookingFlowConfig } from "../../../../../bookingFlowConfig/bookingFlowConfigContext"
|
||||
import { useRoomContext } from "../../../../../contexts/EnterDetails/RoomContext"
|
||||
import useLang from "../../../../../hooks/useLang"
|
||||
|
||||
@@ -24,6 +24,7 @@ type Props = {
|
||||
export function JoinScandicFriendsCard({ name = "join" }: Props) {
|
||||
const lang = useLang()
|
||||
const intl = useIntl()
|
||||
const { routes } = useBookingFlowConfig()
|
||||
const loginPathname = useLazyPathname({ includeSearchParams: true })
|
||||
const {
|
||||
room,
|
||||
@@ -105,7 +106,7 @@ export function JoinScandicFriendsCard({ name = "join" }: Props) {
|
||||
textDecoration="underline"
|
||||
size="tiny"
|
||||
target="_blank"
|
||||
href={membershipTermsAndConditions[lang]}
|
||||
href={routes.membershipTermsAndConditions[lang]}
|
||||
>
|
||||
{str}
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user