feat: wip preview mail receipt

This commit is contained in:
Ahmed Bouhuolia
2024-11-25 16:18:29 +02:00
parent df41de7239
commit ca44d6346d
4 changed files with 143 additions and 70 deletions

View File

@@ -26,6 +26,10 @@ export interface EstimatePaymentEmailProps {
total: string;
totalLabel?: string;
// # Subtotal
subtotal: string;
subtotalLabel?: string;
// # Estimate No#
estimateNumber?: string;
estimateNumberLabel?: string;
@@ -57,10 +61,14 @@ export const EstimatePaymentEmail: React.FC<
// # Colors
primaryColor = 'rgb(0, 82, 204)',
// # invoice total
// # Total
total,
totalLabel = 'Total',
// # Subtotal
subtotal,
subtotalLabel = 'Subtotal',
// # Estimate No#
estimateNumberLabel = 'Estimate No: {estimateNumber}',
estimateNumber = 'EST-00001',
@@ -129,6 +137,16 @@ export const EstimatePaymentEmail: React.FC<
</Row>
))}
<Row style={totalLineRowStyle}>
<Column width={'50%'}>
<Text style={totalLineItemLabelStyle}>{subtotalLabel}</Text>
</Column>
<Column width={'50%'}>
<Text style={totalLineItemAmountStyle}>{subtotal}</Text>
</Column>
</Row>
<Row style={totalLineRowStyle}>
<Column width={'50%'}>
<Text style={totalLineItemLabelStyle}>{totalLabel}</Text>