mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-18 08:47:24 +02:00
🔒️ Rate limit registration endpoint (#1153)
This commit is contained in:
parent
05d1e56805
commit
491af5c71b
9 changed files with 75 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -8,13 +8,11 @@ import {
|
|||
} from "./_components/styled-components";
|
||||
|
||||
interface RegisterEmailProps {
|
||||
name: string;
|
||||
code: string;
|
||||
ctx: EmailContext;
|
||||
}
|
||||
|
||||
export const RegisterEmail = ({
|
||||
name = "John",
|
||||
code = "123456",
|
||||
ctx = defaultEmailContext,
|
||||
}: RegisterEmailProps) => {
|
||||
|
@ -28,7 +26,6 @@ export const RegisterEmail = ({
|
|||
please ignore this email.
|
||||
</>
|
||||
}
|
||||
recipientName={name}
|
||||
preview={`Your 6-digit code is: ${code}`}
|
||||
>
|
||||
<Text>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue