refactor(SW-360): review feedback

This commit is contained in:
Chuma McPhoy
2024-11-21 15:10:28 +01:00
parent 0865a553cd
commit 6f980fe9cd
8 changed files with 21 additions and 17 deletions

View File

@@ -37,7 +37,6 @@ export default function SignupForm({ link, subtitle, title }: SignUpFormProps) {
const email = intl.formatMessage({ id: "Email address" })
const phoneNumber = intl.formatMessage({ id: "Phone number" })
const zipCode = intl.formatMessage({ id: "Zip code" })
const acceptTermsText = intl.formatMessage({ id: "signupPage.terms" })
const signupButtonText = intl.formatMessage({
id: "Sign up to Scandic Friends",
})
@@ -159,15 +158,21 @@ export default function SignupForm({ link, subtitle, title }: SignUpFormProps) {
</header>
<Checkbox name="termsAccepted" registerOptions={{ required: true }}>
<Body>
{acceptTermsText}{" "}
<Link
variant="underscored"
color="peach80"
target="_blank"
href={privacyPolicy[lang]}
>
{intl.formatMessage({ id: "Scandic's Privacy Policy." })}
</Link>
{intl.formatMessage<React.ReactNode>(
{ id: "signupPage.terms" },
{
termsLink: (str) => (
<Link
variant="underscored"
color="peach80"
target="_blank"
href={privacyPolicy[lang]}
>
{str}
</Link>
),
}
)}
</Body>
</Checkbox>
</section>

View File

@@ -465,7 +465,7 @@
"points": "Point",
"room type": "værelsestype",
"room types": "værelsestyper",
"signupPage.terms": "Ja, jeg accepterer vilkårene og betingelserne for Scandic Friends og forstår, at Scandic vil behandle mine personlige data i overensstemmelse med",
"signupPage.terms": "Ja, jeg accepterer vilkårene og betingelserne for Scandic Friends og forstår, at Scandic vil behandle mine personlige data i overensstemmelse med <termsLink>Scandic's integritetspolicy.</termsLink>",
"special character": "speciel karakter",
"spendable points expiring by": "{points} Brugbare point udløber den {date}",
"to": "til",

View File

@@ -464,7 +464,7 @@
"points": "Punkte",
"room type": "zimmerart",
"room types": "zimmerarten",
"signupPage.terms": "Ja, ich akzeptiere die Allgemeinen Geschäftsbedingungen für Scandic Friends und verstehe, dass Scandic meine persönlichen Daten gemäß",
"signupPage.terms": "Ja, ich akzeptiere die Allgemeinen Geschäftsbedingungen für Scandic Friends und verstehe, dass Scandic meine persönlichen Daten gemäß <termsLink>Scandics Datenschutzrichtlinie.</termsLink>",
"special character": "sonderzeichen",
"spendable points expiring by": "{points} Einlösbare punkte verfallen bis zum {date}",
"to": "zu",

View File

@@ -504,7 +504,7 @@
"room type": "room type",
"room types": "room types",
"signup.terms": "By signing up you accept the Scandic Friends <termsLink>Terms and Conditions</termsLink>. Your membership is valid until further notice, and you can terminate your membership at any time by sending an email to Scandics customer service",
"signupPage.terms": "Yes, I accept the Terms and conditions for Scandic Friends and understand that Scandic will process my personal data in accordance with",
"signupPage.terms": "Yes, I accept the Terms and conditions for Scandic Friends and understand that Scandic will process my personal data in accordance with <termsLink>Scandic's Privacy Policy.</termsLink>",
"special character": "special character",
"spendable points expiring by": "{points} spendable points expiring by {date}",
"to": "to",

View File

@@ -463,6 +463,7 @@
"points": "pistettä",
"room type": "huonetyyppi",
"room types": "huonetyypit",
"signupPage.terms": "Kyllä, hyväksyn Scandic Friends -käyttöehdot ja ymmärrän, että Scandic käsittelee henkilötietojani <termsLink>Scandicin tietosuojakäytännön</termsLink> mukaisesti.",
"special character": "erikoishahmo",
"spendable points expiring by": "{points} pistettä vanhenee {date} mennessä",
"to": "to",

View File

@@ -461,7 +461,7 @@
"points": "poeng",
"room type": "romtype",
"room types": "romtyper",
"signupPage.terms": "Ja, jeg godtar vilkårene og betingelsene for Scandic Friends og forstår at Scandic vil behandle mine personopplysninger i henhold til",
"signupPage.terms": "Ja, jeg godtar vilkårene og betingelsene for Scandic Friends og forstår at Scandic vil behandle mine personopplysninger i henhold til <termsLink>Scandics integritetspolicy.</termsLink>",
"special character": "spesiell karakter",
"spendable points expiring by": "{points} Brukbare poeng utløper innen {date}",
"to": "til",

View File

@@ -462,7 +462,7 @@
"points": "poäng",
"room type": "rumtyp",
"room types": "rumstyper",
"signupPage.terms": "Ja, jag accepterar villkoren för Scandic Friends och förstår att Scandic kommer att behandla mina personuppgifter i enlighet med",
"signupPage.terms": "Ja, jag accepterar villkoren för Scandic Friends och förstår att Scandic kommer att behandla mina personuppgifter i enlighet med <termsLink>Scandics integritetspolicy.</termsLink>",
"special character": "speciell karaktär",
"spendable points expiring by": "{points} poäng förfaller {date}",
"to": "till",

View File

@@ -1,8 +1,6 @@
import { z } from "zod"
import { countriesMap } from "@/components/TempDesignSystem/Form/Country/countries"
import { passwordValidator } from "@/utils/passwordValidator"
import { phoneValidator } from "@/utils/phoneValidator"
import { getMembership } from "@/utils/user"
export const membershipSchema = z.object({