mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 17:51:49 +10:00
chore: refactor sendMail to make it reusable
This commit is contained in:
@ -14,7 +14,13 @@ export default function Send() {
|
||||
onClick={async () => {
|
||||
console.log('clicked');
|
||||
|
||||
await sendMail({ email: 'duncan@documenso.com' });
|
||||
await sendMail({
|
||||
email: 'duncan@documenso.com',
|
||||
type: 'invite',
|
||||
documentName: 'Documsenso Salary Invoice.pdf',
|
||||
name: 'Mark Cuban',
|
||||
firstName: 'Mark',
|
||||
});
|
||||
|
||||
alert('sent');
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user