Loading frontend/src/email/EmailForm/modules/HeaderArea.tsx +1 −1 Original line number Diff line number Diff line Loading @@ -185,7 +185,7 @@ const HeaderArea: FC<HeaderAreaProps> = ({ exerciseId={exerciseId} {...(emailThread ? { threadId: emailThread.id } : { emailAddresses: senderList })} : { emailAddresses: senderList, setSubject })} /> </> )} Loading frontend/src/email/EmailTemplates/index.tsx +6 −0 Original line number Diff line number Diff line Loading @@ -26,17 +26,20 @@ type EmailTemplatesProps = { } & ( | { // new thread setSubject: Dispatch<SetStateAction<string | undefined>> emailAddresses: string[] threadId?: undefined } | { // existing thread setSubject?: undefined emailAddresses?: undefined threadId: string } ) const EmailTemplates: FC<EmailTemplatesProps> = ({ setSubject, setSenderAddress, setContent, setActivateMilestone, Loading Loading @@ -75,6 +78,9 @@ const EmailTemplates: FC<EmailTemplatesProps> = ({ if (template.sender) { setSenderAddress(template.sender) } if (setSubject) { setSubject(template.context) } setContent(template.content) setActivateMilestone(template.activateMilestone) setDeactivateMilestone(template.deactivateMilestone) Loading Loading
frontend/src/email/EmailForm/modules/HeaderArea.tsx +1 −1 Original line number Diff line number Diff line Loading @@ -185,7 +185,7 @@ const HeaderArea: FC<HeaderAreaProps> = ({ exerciseId={exerciseId} {...(emailThread ? { threadId: emailThread.id } : { emailAddresses: senderList })} : { emailAddresses: senderList, setSubject })} /> </> )} Loading
frontend/src/email/EmailTemplates/index.tsx +6 −0 Original line number Diff line number Diff line Loading @@ -26,17 +26,20 @@ type EmailTemplatesProps = { } & ( | { // new thread setSubject: Dispatch<SetStateAction<string | undefined>> emailAddresses: string[] threadId?: undefined } | { // existing thread setSubject?: undefined emailAddresses?: undefined threadId: string } ) const EmailTemplates: FC<EmailTemplatesProps> = ({ setSubject, setSenderAddress, setContent, setActivateMilestone, Loading Loading @@ -75,6 +78,9 @@ const EmailTemplates: FC<EmailTemplatesProps> = ({ if (template.sender) { setSenderAddress(template.sender) } if (setSubject) { setSubject(template.context) } setContent(template.content) setActivateMilestone(template.activateMilestone) setDeactivateMilestone(template.deactivateMilestone) Loading