mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat: add ssr email templates rendering
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
Button,
|
||||
Column,
|
||||
Container,
|
||||
Heading,
|
||||
render,
|
||||
Row,
|
||||
Section,
|
||||
Text,
|
||||
@@ -148,6 +148,17 @@ export const ReceiptEmailTemplate: React.FC<
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Renders the sale receipt mail template to string
|
||||
* @param {ReceiptEmailTemplateProps} props
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
export const renderReceiptEmailTemplate = (
|
||||
props: ReceiptEmailTemplateProps
|
||||
) => {
|
||||
return render(<ReceiptEmailTemplate {...props} />);
|
||||
};
|
||||
|
||||
const headerInfoStyle: CSSProperties = {
|
||||
textAlign: 'center',
|
||||
marginBottom: 20,
|
||||
|
||||
Reference in New Issue
Block a user