fix: reuse currentWebHrefs for signup
This commit is contained in:
@@ -4,7 +4,7 @@ import { zodResolver } from "@hookform/resolvers/zod"
|
|||||||
import { FormProvider, useForm } from "react-hook-form"
|
import { FormProvider, useForm } from "react-hook-form"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
import { signupTerms } from "@/constants/routes/signup"
|
import { privacyPolicy } from "@/constants/currentWebHrefs"
|
||||||
|
|
||||||
import { registerUser } from "@/actions/registerUser"
|
import { registerUser } from "@/actions/registerUser"
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
@@ -163,7 +163,7 @@ export default function Form({ link, subtitle, title }: RegisterFormProps) {
|
|||||||
variant="underscored"
|
variant="underscored"
|
||||||
color="peach80"
|
color="peach80"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href={signupTerms[lang]}
|
href={privacyPolicy[lang]}
|
||||||
>
|
>
|
||||||
{intl.formatMessage({ id: "Scandic's Privacy Policy." })}
|
{intl.formatMessage({ id: "Scandic's Privacy Policy." })}
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -1,17 +1,28 @@
|
|||||||
export const bookingTermsAndConditions = {
|
import { LangRoute } from "@/types/routes"
|
||||||
da: "https://www.scandichotels.dk/kundeservice/priser-og-bookingvilkar/vilkar-og-betingelser3",
|
|
||||||
de: "https://www.scandichotels.de/kundenbetreuung/preise-und-richtlinien/reservierungsbedingungen",
|
const baseUrl: LangRoute = {
|
||||||
en: "https://www.scandichotels.com/customer-service/rates-and-policies/terms-conditions",
|
da: "https://www.scandichotels.dk",
|
||||||
fi: "https://www.scandichotels.fi/asiakaspalvelu/hinnat-ja-varausehdot/varausehdot",
|
de: "https://www.scandichotels.de",
|
||||||
no: "https://www.scandichotels.no/kundeservice/priser-og-bestillingsvilkar/reservasjonsbetingelser",
|
en: "https://www.scandichotels.com",
|
||||||
sv: "https://www.scandichotels.se/kundservice/priser-och-bokningsregler/bokningsregler",
|
fi: "https://www.scandichotels.fi",
|
||||||
|
no: "https://www.scandichotels.no",
|
||||||
|
sv: "https://www.scandichotels.se",
|
||||||
}
|
}
|
||||||
|
|
||||||
export const privacyPolicy = {
|
export const bookingTermsAndConditions: LangRoute = {
|
||||||
da: "https://www.scandichotels.dk/kundeservice/priser-og-bookingvilkar/persondatapolitik",
|
da: `${baseUrl.da}/kundeservice/priser-og-bookingvilkar/vilkar-og-betingelser3`,
|
||||||
de: "https://www.scandichotels.de/kundenbetreuung/preise-und-richtlinien/reservierungsbedingungen",
|
de: `${baseUrl.de}/kundenbetreuung/preise-und-richtlinien/reservierungsbedingungen`,
|
||||||
en: "https://www.scandichotels.com/customer-service/rates-and-policies/privacy-policy",
|
en: `${baseUrl.en}/customer-service/rates-and-policies/terms-conditions`,
|
||||||
fi: "https://www.scandichotels.fi/asiakaspalvelu/hinnat-ja-varausehdot/tietosuojaseloste",
|
fi: `${baseUrl.fi}/asiakaspalvelu/hinnat-ja-varausehdot/varausehdot`,
|
||||||
no: "https://www.scandichotels.no/kundeservice/priser-og-bestillingsvilkar/personvernpolicy",
|
no: `${baseUrl.no}/kundeservice/priser-og-bestillingsvilkar/reservasjonsbetingelser`,
|
||||||
sv: "https://www.scandichotels.se/kundservice/priser-och-bokningsregler/integritetspolicy",
|
sv: `${baseUrl.sv}/kundservice/priser-och-bokningsregler/bokningsregler`,
|
||||||
|
}
|
||||||
|
|
||||||
|
export const privacyPolicy: LangRoute = {
|
||||||
|
da: `${baseUrl.da}/kundeservice/priser-og-bookingvilkar/persondatapolitik`,
|
||||||
|
de: `${baseUrl.de}/kundenbetreuung/preise-und-richtlinien/datenschutzrichtlinie`,
|
||||||
|
en: `${baseUrl.en}/customer-service/rates-and-policies/privacy-policy`,
|
||||||
|
fi: `${baseUrl.fi}/asiakaspalvelu/hinnat-ja-varausehdot/tietosuojaseloste`,
|
||||||
|
no: `${baseUrl.no}/kundeservice/priser-og-bestillingsvilkar/personvernpolicy`,
|
||||||
|
sv: `${baseUrl.sv}/kundservice/priser-och-bokningsregler/integritetspolicy`,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,17 +17,3 @@ export const signupVerify: LangRoute = {
|
|||||||
da: `${signup.da}/bekraeft`,
|
da: `${signup.da}/bekraeft`,
|
||||||
de: `${signup.de}/verifizieren`,
|
de: `${signup.de}/verifizieren`,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No work has been scoped out to implement terms of privacy pages for new web yet,
|
|
||||||
* which is why these currently link to routes in current web.
|
|
||||||
* TODO: Align w. stakeholders, make tickets (and reference them here) to update these
|
|
||||||
* links when the time comes.
|
|
||||||
*/
|
|
||||||
export const signupTerms: LangRoute = {
|
|
||||||
en: "https://www.scandichotels.com/customer-service/rates-and-policies/privacy-policy",
|
|
||||||
sv: "https://www.scandichotels.se/kundservice/priser-och-bokningsregler/integritetspolicy",
|
|
||||||
no: "https://www.scandichotels.no/kundeservice/priser-og-bestillingsvilkar/personvernpolicy",
|
|
||||||
fi: "https://www.scandichotels.fi/asiakaspalvelu/hinnat-ja-varausehdot/tietosuojaseloste",
|
|
||||||
da: "https://www.scandichotels.dk/kundeservice/priser-og-bookingvilkar/persondatapolitik",
|
|
||||||
de: "https://www.scandichotels.de/kundenbetreuung/preise-und-richtlinien/datenschutzrichtlinie",
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user