mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: add ssr email templates rendering
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
Column,
|
||||
Container,
|
||||
Heading,
|
||||
render,
|
||||
Row,
|
||||
Section,
|
||||
Text,
|
||||
@@ -143,6 +144,17 @@ export const EstimatePaymentEmail: React.FC<
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Renders the estimate mail template to string
|
||||
* @param {EstimatePaymentEmailProps} props
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
export const renderEstimateEmailTemplate = (
|
||||
props: EstimatePaymentEmailProps
|
||||
) => {
|
||||
return render(<EstimatePaymentEmail {...props} />);
|
||||
};
|
||||
|
||||
const headerInfoStyle: CSSProperties = {
|
||||
textAlign: 'center',
|
||||
marginBottom: 20,
|
||||
|
||||
Reference in New Issue
Block a user