feat: loosen up the zod validations and return null instead of throwing
This commit is contained in:
@@ -30,15 +30,19 @@ export default async function JoinLoyaltyContact({
|
||||
{block.preamble ? (
|
||||
<Body textAlign="center">{block.preamble}</Body>
|
||||
) : null}
|
||||
<Button asChild className={styles.link} intent="primary">
|
||||
<Link href="#">{formatMessage({ id: "Join Scandic Friends" })}</Link>
|
||||
<Button asChild intent="primary">
|
||||
<Body asChild fontOnly textAlign="center" textTransform="bold">
|
||||
<Link href={login[lang]}>
|
||||
{formatMessage({ id: "Join Scandic Friends" })}
|
||||
</Link>
|
||||
</Body>
|
||||
</Button>
|
||||
<Link href={login[lang]}>
|
||||
<Footnote textAlign="center" textTransform="bold">
|
||||
<Footnote asChild fontOnly textAlign="center" textTransform="bold">
|
||||
<Link color="burgundy" href={`/${lang}/login`}>
|
||||
{formatMessage({ id: "Already a friend?" })} <br />
|
||||
{formatMessage({ id: "Click here to log in" })}
|
||||
</Footnote>
|
||||
</Link>
|
||||
</Link>
|
||||
</Footnote>
|
||||
</article>
|
||||
{block.contact ? <Contact contactBlock={block.contact} /> : null}
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user