-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…136)
- Loading branch information
1 parent
a8dd381
commit 9f9d208
Showing
12 changed files
with
128 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Body, Html } from 'jsx-email'; | ||
|
||
export const TemplateName = 'default-export-props-fn'; | ||
|
||
const Template = ({ test }: { test: string }) => ( | ||
<Html> | ||
<Body>{test}</Body> | ||
</Html> | ||
); | ||
|
||
Template.PreviewProps = () => { | ||
return { test: 'batman' }; | ||
}; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default Template; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Body, Html } from 'jsx-email'; | ||
|
||
export const TemplateName = 'default-export'; | ||
|
||
const Template = ({ test }: { test: string }) => ( | ||
<Html> | ||
<Body>{test}</Body> | ||
</Html> | ||
); | ||
|
||
Template.PreviewProps = { test: 'batman' }; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default Template; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Body, Html } from 'jsx-email'; | ||
|
||
export const TemplateName = 'preview-props-fn'; | ||
|
||
export const Template = ({ test }: { test: string }) => ( | ||
<Html> | ||
<Body>{test}</Body> | ||
</Html> | ||
); | ||
|
||
Template.PreviewProps = () => { | ||
return { test: 'batman' }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Body, Html } from 'jsx-email'; | ||
|
||
export const TemplateName = 'preview-props'; | ||
|
||
export const Template = ({ test }: { test: string }) => ( | ||
<Html> | ||
<Body>{test}</Body> | ||
</Html> | ||
); | ||
|
||
export const PreviewProps = { test: 'batman' }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Body, Html } from 'jsx-email'; | ||
|
||
export const TemplateName = 'preview-props'; | ||
|
||
export const Template = ({ test }: { test: string }) => ( | ||
<Html> | ||
<Body>{test}</Body> | ||
</Html> | ||
); | ||
|
||
Template.PreviewProps = { test: 'batman' }; |
10 changes: 10 additions & 0 deletions
10
apps/test/tests/.snapshots/smoke.spec.ts-page-Default-Export-1-chromium.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html | ||
lang="en" | ||
dir="ltr" | ||
> | ||
<head> | ||
</head> | ||
<body> | ||
batman | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
apps/test/tests/.snapshots/smoke.spec.ts-page-Default-Export-Props-Fn-1-chromium.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html | ||
lang="en" | ||
dir="ltr" | ||
> | ||
<head> | ||
</head> | ||
<body> | ||
batman | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
apps/test/tests/.snapshots/smoke.spec.ts-page-Preview-Props-1-chromium.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html | ||
lang="en" | ||
dir="ltr" | ||
> | ||
<head> | ||
</head> | ||
<body> | ||
batman | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
apps/test/tests/.snapshots/smoke.spec.ts-page-Preview-Props-Fn-1-chromium.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html | ||
lang="en" | ||
dir="ltr" | ||
> | ||
<head> | ||
</head> | ||
<body> | ||
batman | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
apps/test/tests/.snapshots/smoke.spec.ts-page-Preview-Props-Named-1-chromium.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html | ||
lang="en" | ||
dir="ltr" | ||
> | ||
<head> | ||
</head> | ||
<body> | ||
batman | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters