Skip to content

Commit

Permalink
remove setupForPreview articacts
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Feb 5, 2025
1 parent 4f640fa commit c51ee46
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 39 deletions.
10 changes: 3 additions & 7 deletions apps/demo/emails/magic-links/linear-login-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
Section,
Text,
} from '@react-email/components';
import { setupForPreview } from 'react-email';

interface LinearLoginCodeEmailProps {
validationCode: string;
Expand Down Expand Up @@ -57,12 +56,9 @@ export const LinearLoginCodeEmail = ({
</Html>
);

setupForPreview(LinearLoginCodeEmail, {
validationCode: {
type: 'text',
defaultValue: 'tt226-5398x',
},
});
LinearLoginCodeEmail.PreviewProps = {
validationCode: 'tt226-5398x',
};

export default LinearLoginCodeEmail;

Expand Down
11 changes: 3 additions & 8 deletions apps/demo/emails/magic-links/notion-magic-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import {
Preview,
Text,
} from '@react-email/components';
import * as React from 'react';
import { setupForPreview } from 'react-email';

interface NotionMagicLinkEmailProps {
loginCode: string;
Expand Down Expand Up @@ -88,12 +86,9 @@ export const NotionMagicLinkEmail = ({
</Html>
);

setupForPreview(NotionMagicLinkEmail, {
loginCode: {
type: 'text',
defaultValue: 'sparo-ndigo-amurt-secan',
},
});
NotionMagicLinkEmail.PreviewProps = {
loginCode: 'sparo-ndigo-amurt-secan',
};

export default NotionMagicLinkEmail;

Expand Down
11 changes: 3 additions & 8 deletions apps/demo/emails/magic-links/plaid-verify-identity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import {
Section,
Text,
} from '@react-email/components';
import * as React from 'react';
import { setupForPreview } from 'react-email';

interface PlaidVerifyIdentityEmailProps {
validationCode: string;
Expand Down Expand Up @@ -55,12 +53,9 @@ export const PlaidVerifyIdentityEmail = ({
</Html>
);

setupForPreview(PlaidVerifyIdentityEmail, {
validationCode: {
type: 'text',
defaultValue: '144833',
},
});
PlaidVerifyIdentityEmail.PreviewProps = {
validationCode: '144833',
};

export default PlaidVerifyIdentityEmail;

Expand Down
11 changes: 3 additions & 8 deletions apps/demo/emails/magic-links/raycast-magic-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import {
Section,
Text,
} from '@react-email/components';
import * as React from 'react';
import { setupForPreview } from 'react-email';

interface RaycastMagicLinkEmailProps {
magicLink: string;
Expand Down Expand Up @@ -71,12 +69,9 @@ export const RaycastMagicLinkEmail = ({
</Html>
);

setupForPreview(RaycastMagicLinkEmail, {
magicLink: {
type: 'text',
defaultValue: 'https://raycast.com',
},
});
RaycastMagicLinkEmail.PreviewProps = {
magicLink: 'https://raycast.com'
}

export default RaycastMagicLinkEmail;

Expand Down
11 changes: 3 additions & 8 deletions apps/demo/emails/magic-links/slack-confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import {
Section,
Text,
} from '@react-email/components';
import * as React from 'react';
import { setupForPreview } from 'react-email';

interface SlackConfirmEmailProps {
validationCode: string;
Expand Down Expand Up @@ -156,12 +154,9 @@ export const SlackConfirmEmail = ({
</Html>
);

setupForPreview(SlackConfirmEmail, {
validationCode: {
type: 'text',
defaultValue: 'DJZ-TLX',
},
});
SlackConfirmEmail.PreviewProps = {
validationCode: 'DJZ-TLX',
};

export default SlackConfirmEmail;

Expand Down

0 comments on commit c51ee46

Please sign in to comment.