🔒️ Rate limit registration endpoint (#1153)

This commit is contained in:
Luke Vella 2024-06-17 21:42:16 +01:00 committed by GitHub
parent 05d1e56805
commit 491af5c71b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 75 additions and 9 deletions

View file

@ -13,7 +13,7 @@ import { fontFamily, Section, Text } from "./styled-components";
export interface EmailLayoutProps {
preview: string;
recipientName: string;
recipientName?: string;
footNote?: React.ReactNode;
ctx: EmailContext;
}
@ -40,7 +40,7 @@ const linkStyles = {
export const EmailLayout = ({
preview,
recipientName = "Guest",
recipientName,
children,
footNote,
ctx,
@ -60,7 +60,7 @@ export const EmailLayout = ({
<Container style={containerStyles}>
<Img src={logoUrl} alt="Rallly" width={128} />
<Section style={sectionStyles}>
<Text>Hi {recipientName},</Text>
{recipientName ? <Text>Hi {recipientName},</Text> : null}
{children}
{footNote ? (
<Text