Skip to content

Commit eb908e5

Browse files
committed
add placeholders
remove timestamp
1 parent d547626 commit eb908e5

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

backend/typescript/services/implementations/emailService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
);

frontend/src/APIClients/CamperAPIClient.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

119121
const getCampersByChargeIdAndSessionId = async (
120122
chargeId: string,
@@ -138,7 +140,6 @@ export default {
138140
updateCamperRegistrationStatus,
139141
deleteWaitlistedCamperById,
140142
updateCampersById,
141-
sendWaiverEmail,
142143
getCampersByChargeIdAndSessionId,
143144
deleteMultipleCampersById,
144145
};

frontend/src/components/pages/RegistrantExperience/Waiver/index.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)