Skip to content

Commit

Permalink
update url
Browse files Browse the repository at this point in the history
  • Loading branch information
kaarthik108 committed Jul 31, 2023
1 parent 0969132 commit 3ed3652
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 17 deletions.
12 changes: 7 additions & 5 deletions pulumi/app/emails/InvoiceTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
} from '@react-email/components';
import * as React from 'react';

const url = process.env.URL;

export const AppleReceiptEmail = () => (
<Html>
<Head />
Expand All @@ -24,7 +26,7 @@ export const AppleReceiptEmail = () => (
<Section>
<Column>
<Img
src={`../static/apple-logo.png`}
src={`${url}/apple-logo.png`}
width="42"
height="42"
alt="Apple Logo"
Expand Down Expand Up @@ -107,7 +109,7 @@ export const AppleReceiptEmail = () => (
<Section>
<Column style={{ width: '64px' }}>
<Img
src={`../static/apple-hbo-max-icon.jpeg`}
src={`${url}/apple-hbo-max-icon.jpeg`}
width="64"
height="64"
alt="HBO Max"
Expand Down Expand Up @@ -153,7 +155,7 @@ export const AppleReceiptEmail = () => (
<Section>
<Column align="center" style={block}>
<Img
src={`../static/apple-card-icon.png`}
src={`${url}/apple-card-icon.png`}
width="60"
height="17"
alt="Apple Card"
Expand All @@ -172,7 +174,7 @@ export const AppleReceiptEmail = () => (
style={walletLink}
>
<Img
src={`../static/apple-wallet.png`}
src={`${url}/apple-wallet.png`}
width="28"
height="28"
alt="Apple Wallet"
Expand Down Expand Up @@ -246,7 +248,7 @@ export const AppleReceiptEmail = () => (
<Section>
<Column align="center" style={footerIcon}>
<Img
src={`../static/apple-logo.png`}
src={`${url}/apple-logo.png`}
width="26"
height="26"
alt="Apple Card"
Expand Down
5 changes: 4 additions & 1 deletion pulumi/app/emails/TestTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ interface TestTemplateProps {
description: string;
};

const url = process.env.URL;


const TestTemplate: React.FC<TestTemplateProps> = ({
title = 'Hello, User!',
link = 'https://example.com',
imageLink = '../static/plaid-logo.png',
imageLink = `${url}/plaid-logo.png`,
description = 'This is a sample email template.'
}) => {
return (
Expand Down
11 changes: 7 additions & 4 deletions pulumi/app/emails/inviteUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ interface VercelInviteUserEmailProps {
inviteFromLocation?: string;
}

const url = process.env.URL;


export const VercelInviteUserEmail = ({
username = 'zenorocha',
userImage = `../static/vercel-user.png`,
userImage = `${url}/vercel-user.png`,
invitedByUsername = 'bukinoshita',
invitedByEmail = '[email protected]',
teamName = 'My Project',
teamImage = `../static/vercel-team.png`,
teamImage = `${url}/vercel-team.png`,
inviteLink = 'https://vercel.com/teams/invite/foo',
inviteFromIp = '204.13.186.218',
inviteFromLocation = 'São Paulo, Brazil',
Expand All @@ -51,7 +54,7 @@ export const VercelInviteUserEmail = ({
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] w-[465px]">
<Section className="mt-[32px]">
<Img
src={`../static/vercel-logo.png`}
src={`${url}/vercel-logo.png`}
width="40"
height="37"
alt="Vercel"
Expand Down Expand Up @@ -82,7 +85,7 @@ export const VercelInviteUserEmail = ({
</Column>
<Column align="center">
<Img
src={`../static/vercel-arrow.png`}
src={`${url}/vercel-arrow.png`}
width="12"
height="9"
alt="invited you to"
Expand Down
5 changes: 3 additions & 2 deletions pulumi/app/emails/notionMagicLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ import {
} from '@react-email/components';
import * as React from 'react';

const url = process.env.URL;

interface NotionMagicLinkEmailProps {
loginCode?: string;
}


export const NotionMagicLinkEmail = ({
loginCode = 'sparo-ndigo-amurt-secan',
}: NotionMagicLinkEmailProps) => (
Expand Down Expand Up @@ -62,7 +63,7 @@ export const NotionMagicLinkEmail = ({
account.
</Text>
<Img
src={`../static/notion-logo.png`}
src={`${url}/notion-logo.png`}
width="32"
height="32"
alt="Notion's Logo"
Expand Down
4 changes: 3 additions & 1 deletion pulumi/app/emails/plaidVerifyIdentity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ interface PlaidVerifyIdentityEmailProps {
validationCode?: string;
}

const url = process.env.URL;

export const PlaidVerifyIdentityEmail = ({
validationCode = '144833',
}: PlaidVerifyIdentityEmailProps) => (
Expand All @@ -23,7 +25,7 @@ export const PlaidVerifyIdentityEmail = ({
<Body style={main}>
<Container style={container}>
<Img
src={`../static/plaid-logo.png`}
src={`${url}/plaid-logo.png`}
width="212"
height="88"
alt="Plaid"
Expand Down
5 changes: 4 additions & 1 deletion pulumi/app/emails/productShow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ interface SnowChatEmailProps {
userImage?: string;
}

const url = process.env.URL;


export const SnowChatEmail = ({
username = 'Human',
}: SnowChatEmailProps) => {
Expand All @@ -33,7 +36,7 @@ export const SnowChatEmail = ({
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] w-[465px]">
<Section className="mt-[32px]">
<Img
src='../static/SNOW.png'
src={`${url}/snowchat-logo.png`}
width="40"
height="37"
alt="snowChat"
Expand Down
8 changes: 6 additions & 2 deletions pulumi/app/emails/snowbrainTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Heading,
Hr,
Html,
Img,
Link,
Preview,
Section,
Expand All @@ -18,6 +19,9 @@ interface SnowBrainEmailProps {
username?: string;
}

const url = process.env.URL;


export const SnowBrainEmail = ({
username = 'people from earth',
}: SnowBrainEmailProps) => {
Expand Down Expand Up @@ -57,8 +61,8 @@ export const SnowBrainEmail = ({
</Button>
</Section>
<Section className="mt-8 mb-4">
<img
src={`../static/snowbrain-logo.png`}
<Img
src={`${url}/snowbrain-logo.png`}
alt="SnowBrain Logo"
className="rounded-lg w-full max-w-md mx-auto"
/>
Expand Down
5 changes: 4 additions & 1 deletion pulumi/app/emails/stripeWelcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import {
import * as React from 'react';


const url = process.env.URL;


function StripeWelcomeEmail() {
return (
<Html>
Expand All @@ -23,7 +26,7 @@ function StripeWelcomeEmail() {
<Container style={container}>
<Section style={box}>
<Img
src={`../static/stripe-logo.png`}
src={`${url}/stripe-logo.png`}
width="49"
height="21"
alt="Stripe"
Expand Down

0 comments on commit 3ed3652

Please sign in to comment.