-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use different templates for sign ups and sign ins
- Loading branch information
1 parent
1a9618a
commit 18b9f24
Showing
5 changed files
with
97 additions
and
243 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,32 @@ | ||
import { | ||
insertContent, | ||
} from './shared' | ||
|
||
const getEmailTemplate = () => { | ||
|
||
return insertContent( | ||
` | ||
<div> | ||
<p> | ||
Click the link below to sign in to the AI Incident Database: | ||
</p> | ||
<p style="font-size: 85%;"> | ||
{{magicLink}} | ||
</p> | ||
<p> | ||
This link will expire in 24 hours. If you did not request this email, please ignore it. | ||
</p> | ||
</div> | ||
<p style="margin-bottom: 32px"> | ||
Sincerely,<br> | ||
Responsible AI Collaborative | ||
</p> | ||
`, | ||
{ title: 'Signup' } | ||
); | ||
}; | ||
|
||
export default getEmailTemplate(); |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
import { | ||
insertContent, | ||
} from './shared' | ||
|
||
const getEmailTemplate = () => { | ||
|
||
return insertContent( | ||
` | ||
<div> | ||
<p> | ||
Click the link below to verify your email address for the AI Incident Database: | ||
</p> | ||
<p style="font-size: 85%;"> | ||
{{magicLink}} | ||
</p> | ||
<p> | ||
This link will expire in 24 hours. If you did not request this email, please ignore it. | ||
</p> | ||
</div> | ||
<p style="margin-bottom: 32px"> | ||
Sincerely,<br> | ||
Responsible AI Collaborative | ||
</p> | ||
`, | ||
{ title: 'Signup' } | ||
); | ||
}; | ||
|
||
export default getEmailTemplate(); |
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import EntityIncidentUpdated from './EntityIncidentUpdated'; | ||
import IncidentUpdate from './IncidentUpdate'; | ||
import MagicLink from './MagicLink'; | ||
import Login from './Login'; | ||
import Signup from './Signup'; | ||
import NewEntityIncident from './NewEntityIncident'; | ||
import NewIncident from './NewIncident'; | ||
import NewReportAddedToAnIncident from './NewReportAddedToAnIncident'; | ||
import SubmissionApproved from './SubmissionApproved'; | ||
|
||
const templates: Record<string, string> = { | ||
EntityIncidentUpdated: EntityIncidentUpdated, | ||
IncidentUpdate: IncidentUpdate, | ||
NewEntityIncident: NewEntityIncident, | ||
NewIncident: NewIncident, | ||
NewReportAddedToAnIncident: NewReportAddedToAnIncident, | ||
SubmissionApproved: SubmissionApproved, | ||
MagicLink: MagicLink, | ||
EntityIncidentUpdated, | ||
IncidentUpdate, | ||
NewEntityIncident, | ||
NewIncident, | ||
NewReportAddedToAnIncident, | ||
SubmissionApproved, | ||
Login, | ||
Signup, | ||
}; | ||
|
||
export default templates; |