mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 20:00: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,
|
||||
@@ -135,6 +135,15 @@ export const CreditNoteEmailTemplate: React.FC<
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Renders the estimate mail template to string
|
||||
* @param {EstimatePaymentEmailProps} props
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
export const renderCreditNoteEmailTemplate = (props: CreditNoteEmailProps) => {
|
||||
return render(<CreditNoteEmailTemplate {...props} />);
|
||||
};
|
||||
|
||||
const containerStyle: CSSProperties = {
|
||||
backgroundColor: '#fff',
|
||||
width: '100%',
|
||||
|
||||
Reference in New Issue
Block a user