fix: mail services

This commit is contained in:
Ahmed Bouhuolia
2024-11-09 22:23:52 +02:00
parent 94223b6ebf
commit aa7e5d4ae9
15 changed files with 168 additions and 64 deletions

View File

@@ -66,7 +66,7 @@ export function MailNotificationForm({
</FFormGroup>
</HeaderBox>
<MailMessageEditor name={'body'} />
<MailMessageEditor name={'message'} />
</Box>
);
}

View File

@@ -5,7 +5,7 @@ export const initialMailNotificationValues = {
from: [],
to: [],
subject: '',
body: '',
message: '',
};
export interface MailNotificationFormValues {
@@ -26,7 +26,7 @@ export const transformMailFormToRequest = (
};
/**
* Transformes the mail options response values to form initial values.
* Transforms the mail options response values to form initial values.
* @param {any} mailOptions
* @param {MailNotificationFormValues} initialValues
* @returns {MailNotificationFormValues}