Skip to content

Commit 6a4f129

Browse files
authored
fix(demo): Preview component being used outside of Body (#1698)
1 parent 8a8e74f commit 6a4f129

22 files changed

+36
-32
lines changed

apps/demo/emails/magic-links/aws-verify-email.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default function AWSVerifyEmail({
2727
return (
2828
<Html>
2929
<Head />
30-
<Preview>AWS Email Verification</Preview>
3130
<Body style={main}>
31+
<Preview>AWS Email Verification</Preview>
3232
<Container style={container}>
3333
<Section style={coverSection}>
3434
<Section style={imageSection}>

apps/demo/emails/magic-links/linear-login-code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export const LinearLoginCodeEmail = ({
2727
}: LinearLoginCodeEmailProps) => (
2828
<Html>
2929
<Head />
30-
<Preview>Your login code for Linear</Preview>
3130
<Body style={main}>
31+
<Preview>Your login code for Linear</Preview>
3232
<Container style={container}>
3333
<Img
3434
src={`${baseUrl}/static/linear-logo.png`}

apps/demo/emails/magic-links/notion-magic-link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export const NotionMagicLinkEmail = ({
2424
}: NotionMagicLinkEmailProps) => (
2525
<Html>
2626
<Head />
27-
<Preview>Log in with this magic link</Preview>
2827
<Body style={main}>
28+
<Preview>Log in with this magic link</Preview>
2929
<Container style={container}>
3030
<Heading style={h1}>Login</Heading>
3131
<Link

apps/demo/emails/magic-links/raycast-magic-link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export const RaycastMagicLinkEmail = ({
2626
}: RaycastMagicLinkEmailProps) => (
2727
<Html>
2828
<Head />
29-
<Preview>Log in with this magic link.</Preview>
3029
<Body style={main}>
30+
<Preview>Log in with this magic link.</Preview>
3131
<Container style={container}>
3232
<Img
3333
src={`${baseUrl}/static/raycast-logo.png`}

apps/demo/emails/magic-links/slack-confirm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export const SlackConfirmEmail = ({
2727
}: SlackConfirmEmailProps) => (
2828
<Html>
2929
<Head />
30-
<Preview>Confirm your email address</Preview>
3130
<Body style={main}>
31+
<Preview>Confirm your email address</Preview>
3232
<Container style={container}>
3333
<Section style={logoContainer}>
3434
<Img

apps/demo/emails/newsletters/codepen-challengers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const baseUrl = process.env.VERCEL_URL
2222
export const CodepenChallengersEmail = () => (
2323
<Html>
2424
<Head />
25-
<Preview>#CodePenChallenge: Cubes</Preview>
2625
<Body style={main}>
26+
<Preview>#CodePenChallenge: Cubes</Preview>
2727
<Section style={header}>
2828
<Img
2929
style={imgHeader}

apps/demo/emails/newsletters/google-play-policy-update.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const baseUrl = process.env.VERCEL_URL
2121
export const GooglePlayPolicyUpdateEmail = () => (
2222
<Html>
2323
<Head />
24-
<Preview>Google Play developers</Preview>
2524
<Body style={main}>
25+
<Preview>Google Play developers</Preview>
2626
<Container style={container}>
2727
<Section>
2828
<Row>

apps/demo/emails/newsletters/stack-overflow-tips.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export const StackOverflowTipsEmail = ({
4848
}: StackOverflowTipsEmailProps) => (
4949
<Html>
5050
<Head />
51-
<Preview>Stack overflow tips for searching</Preview>
5251
<Body style={main}>
52+
<Preview>Stack overflow tips for searching</Preview>
5353
<Container style={container}>
5454
<Section style={logo}>
5555
<Img width={146} src={`${baseUrl}/static/stack-overflow-logo.png`} />

apps/demo/emails/notifications/github-access-token.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ export const GithubAccessTokenEmail = ({
2525
}: GithubAccessTokenEmailProps) => (
2626
<Html>
2727
<Head />
28-
<Preview>
29-
A fine-grained personal access token has been added to your account
30-
</Preview>
3128
<Body style={main}>
29+
<Preview>
30+
A fine-grained personal access token has been added to your account
31+
</Preview>
3232
<Container style={container}>
3333
<Img
3434
src={`${baseUrl}/static/github.png`}

apps/demo/emails/notifications/vercel-invite-user.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ export const VercelInviteUserEmail = ({
4949
return (
5050
<Html>
5151
<Head />
52-
<Preview>{previewText}</Preview>
5352
<Tailwind>
5453
<Body className="bg-white my-auto mx-auto font-sans px-2">
54+
<Preview>{previewText}</Preview>
5555
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] max-w-[465px]">
5656
<Section className="mt-[32px]">
5757
<Img

0 commit comments

Comments
 (0)