Merged in refactor/SW-2826-align-urls (pull request #3359)
refactor(SW-2826): align urls * refactor(SW-2826): align urls Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { useFormContext } from "react-hook-form"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { bookingTermsAndConditionsRoutes } from "@scandic-hotels/common/constants/routes/bookingTermsAndConditionsRoutes"
|
||||
import { privacyPolicyRoutes } from "@scandic-hotels/common/constants/routes/privacyPolicyRoutes"
|
||||
import Checkbox from "@scandic-hotels/design-system/Form/Checkbox"
|
||||
import { ErrorMessage } from "@scandic-hotels/design-system/Form/ErrorMessage"
|
||||
import { TextLink } from "@scandic-hotels/design-system/TextLink"
|
||||
@@ -12,6 +10,10 @@ import useLang from "@/hooks/useLang"
|
||||
import { getErrorMessage } from "@/utils/getErrorMessage"
|
||||
|
||||
import styles from "./termsAndConditions.module.css"
|
||||
import {
|
||||
bookingTerms,
|
||||
privacy,
|
||||
} from "@scandic-hotels/common/constants/routes/customerService"
|
||||
|
||||
export default function TermsAndConditions() {
|
||||
const intl = useIntl()
|
||||
@@ -28,7 +30,7 @@ export default function TermsAndConditions() {
|
||||
{
|
||||
termsAndConditionsLink: (str) => (
|
||||
<TextLink
|
||||
href={bookingTermsAndConditionsRoutes[lang]}
|
||||
href={bookingTerms[lang]}
|
||||
theme="InteractiveDefault"
|
||||
typography="Link/sm"
|
||||
target="_blank"
|
||||
@@ -39,7 +41,7 @@ export default function TermsAndConditions() {
|
||||
),
|
||||
privacyPolicyLink: (str) => (
|
||||
<TextLink
|
||||
href={privacyPolicyRoutes[lang]}
|
||||
href={privacy[lang]}
|
||||
theme="InteractiveDefault"
|
||||
typography="Link/sm"
|
||||
target="_blank"
|
||||
|
||||
Reference in New Issue
Block a user