File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
backend/typescript/services/implementations
components/pages/RegistrantExperience/Waiver Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ class EmailService implements IEmailService {
102102 <ol>
103103 ${ sessionDatesListItems . join ( "" ) }
104104 </ol>
105- <li><b>Responses Received on:</b> </li>
106105 </ul>` ,
107106 attachments ,
108107 ) ;
Original file line number Diff line number Diff line change @@ -93,8 +93,9 @@ const deleteMultipleCampersById = async (ids: string[]): Promise<boolean> => {
9393 }
9494} ;
9595
96- const sendWaiverEmail = async (
97- waiverContent : HTMLElement ,
96+ /* TODO: take pdf logic and move to /campers/register call
97+ const sendConfirmationEmails = async (
98+ waiverContent: string,
9899): Promise<boolean> => {
99100 try {
100101 const waiverPdf = new JsPDF("portrait", "pt", "a4");
@@ -115,6 +116,7 @@ const sendWaiverEmail = async (
115116 return false;
116117 }
117118}
119+ */
118120
119121const getCampersByChargeIdAndSessionId = async (
120122 chargeId : string ,
@@ -138,7 +140,6 @@ export default {
138140 updateCamperRegistrationStatus,
139141 deleteWaitlistedCamperById,
140142 updateCampersById,
141- sendWaiverEmail,
142143 getCampersByChargeIdAndSessionId,
143144 deleteMultipleCampersById,
144145} ;
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ const WaiverPage = ({
6363 waiverDispatch,
6464 campName,
6565} : WaiverPageProps ) : React . ReactElement => {
66+ /* TODO: store waiver content (html) string to be used in future steps
67+ const sendEmail = async () => {
68+ const waiver = document.getElementById("waiver")?.outerHTML;
69+ await CamperAPIClient.sendConfirmationEmail(waiver);
70+ }
71+ */
6672 return (
6773 < Box >
6874 < VStack align = "stretch" >
@@ -229,9 +235,6 @@ const WaiverPage = ({
229235 />
230236 </ FormControl >
231237 </ Wrap >
232- < button onClick = { sendEmail } type = "button" >
233- Send Email PDF
234- </ button >
235238 </ Box >
236239 ) ;
237240} ;
You can’t perform that action at this time.
0 commit comments