Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): create waiver emails #894

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 19 additions & 24 deletions lib/libs/email/content/withdrawPackage/emailTemplates/WaiverCMS.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,22 @@ export const WaiverCMSEmail = ({
variables,
}: {
variables: Events["WithdrawPackage"] & CommonEmailVariables;
}) => {
const previewText = `Withdrawal of ${variables.authority} ${variables.id}`;
const heading =
"The OneMAC Submission Portal received a request to withdraw the package below. The package will no longer be considered for CMS review:";
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,
"Waiver Number": variables.id,
Summary: variables.additionalInformation,
}}
/>
<SpamWarning />
</BaseEmailTemplate>
);
};
}) => (
<BaseEmailTemplate
previewText={`Waiver Package ${variables.id} Withdraw Request`}
charmcitygavin marked this conversation as resolved.
Show resolved Hide resolved
heading="The OneMAC Submission Portal received a request to withdraw the package below. The package will no longer be considered for CMS review:"
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
>
<PackageDetails
details={{
"State or territory": variables.territory,
Name: variables.submitterName,
"Email Address": variables.submitterEmail,
"Waiver Number": variables.id,
Summary: variables.additionalInformation,
}}
/>
<SpamWarning />
</BaseEmailTemplate>
);
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ export const WaiverStateEmail = ({
}) => {
return (
<BaseEmailTemplate
previewText={`Withdrawal of ${variables.authority} ${variables.id}`}
heading={`This is confirmation that you have requested to withdraw the package below. The package will no longer be considered for CMS review:`}
previewText={`Waiver Package ${variables.id} Withdraw Request`}
heading={
"This is confirmation that you have requested to withdraw the package below. The package will no longer be considered for CMS review:"
}
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
>
Expand Down
Loading