-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
121 changed files
with
4,369 additions
and
8,883 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 |
---|---|---|
|
@@ -21,3 +21,4 @@ DS_Store | |
|
||
# tests | ||
coverage | ||
.vitest |
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
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
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
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
59 changes: 28 additions & 31 deletions
59
lib/libs/email/content/respondToRai/emailTemplates/ChipSpaState.tsx
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,39 +1,36 @@ | ||
import { formatNinetyDaysDate } from "shared-utils"; | ||
import { CommonEmailVariables, Events } from "shared-types"; | ||
import { Text } from "@react-email/components"; | ||
import { PackageDetails, BasicFooter } from "../../email-components"; | ||
import { PackageDetails, BasicFooter, FollowUpNotice } from "../../email-components"; | ||
import { BaseEmailTemplate } from "../../email-templates"; | ||
import { styles } from "../../email-styles"; | ||
|
||
export const ChipSpaStateEmail = (props: { | ||
export const ChipSpaStateEmail = ({ | ||
variables, | ||
}: { | ||
variables: Events["RespondToRai"] & CommonEmailVariables; | ||
}) => { | ||
const variables = props.variables; | ||
const previewText = `CHIP SPA ${variables.id} RAI Response Submitted`; | ||
const heading = "The OneMAC Submission Portal received a CHIP SPA RAI Response Submission"; | ||
return ( | ||
<BaseEmailTemplate | ||
previewText={previewText} | ||
heading={heading} | ||
applicationEndpointUrl={variables.applicationEndpointUrl} | ||
footerContent={<BasicFooter />} | ||
> | ||
<PackageDetails | ||
details={{ | ||
"State or Territory": variables.territory, | ||
Name: variables.submitterName, | ||
"Email Address": variables.submitterEmail, | ||
"CHIP SPA Package ID": variables.id, | ||
"90th Day Deadline": formatNinetyDaysDate(variables.timestamp), | ||
Summary: variables.additionalInformation, | ||
}} | ||
/> | ||
<Text style={styles.text.description}> | ||
{`This response confirms receipt of your CHIP State Plan Amendment (SPA) or your response to a | ||
}) => ( | ||
<BaseEmailTemplate | ||
previewText={`CHIP SPA ${variables.id} RAI Response Submitted`} | ||
heading="The OneMAC Submission Portal received a CHIP SPA RAI Response Submission" | ||
applicationEndpointUrl={variables.applicationEndpointUrl} | ||
footerContent={<BasicFooter />} | ||
> | ||
<PackageDetails | ||
details={{ | ||
"State or Territory": variables.territory, | ||
Name: variables.submitterName, | ||
"Email Address": variables.submitterEmail, | ||
"CHIP SPA Package ID": variables.id, | ||
"90th Day Deadline": formatNinetyDaysDate(variables.timestamp), | ||
Summary: variables.additionalInformation, | ||
}} | ||
/> | ||
<Text style={styles.text.description}> | ||
{`This response confirms receipt of your CHIP State Plan Amendment (SPA) or your response to a | ||
SPA Request for Additional Information (RAI). You can expect a formal response to your | ||
submittal to be issued within 90 days, before ${formatNinetyDaysDate(variables.timestamp)} | ||
.`} | ||
</Text> | ||
</BaseEmailTemplate> | ||
); | ||
}; | ||
submittal to be issued within 90 days, before ${formatNinetyDaysDate(variables.timestamp)}.`} | ||
</Text> | ||
<FollowUpNotice isChip withDivider={false} /> | ||
</BaseEmailTemplate> | ||
); |
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
Oops, something went wrong.