mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
fix: invoice payment email storybook
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
import { Meta } from '@storybook/react';
|
import { Meta } from '@storybook/react';
|
||||||
import { StoryFn } from '@storybook/react';
|
import { StoryFn } from '@storybook/react';
|
||||||
import {
|
import {
|
||||||
@@ -15,22 +16,3 @@ export default meta;
|
|||||||
const Template: StoryFn<typeof InvoicePaymentEmail> = (
|
const Template: StoryFn<typeof InvoicePaymentEmail> = (
|
||||||
args: InvoicePaymentEmailProps
|
args: InvoicePaymentEmailProps
|
||||||
) => <InvoicePaymentEmail {...args} />;
|
) => <InvoicePaymentEmail {...args} />;
|
||||||
|
|
||||||
export const PreviewInvoicePaymentMail = Template.bind({});
|
|
||||||
|
|
||||||
PreviewInvoicePaymentMail.args = {
|
|
||||||
preview: 'Preview text',
|
|
||||||
companyName: 'ABC Company',
|
|
||||||
companyLogoUri: 'https://example.com/logo.png',
|
|
||||||
invoiceAmount: '100.00',
|
|
||||||
dueDate: '2022-12-31',
|
|
||||||
invoiceMessage: 'Thank you for your purchase!',
|
|
||||||
invoiceNumber: 'INV-001',
|
|
||||||
dueAmount: '100.00',
|
|
||||||
total: '100.00',
|
|
||||||
viewInvoiceButtonUrl: 'https://example.com/invoice',
|
|
||||||
items: [
|
|
||||||
{ label: 'Item 1', quantity: '1', rate: '50.00' },
|
|
||||||
{ label: 'Item 2', quantity: '2', rate: '25.00' },
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user