mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: wip mail receipt preview
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
import { lazy } from 'react';
|
||||
import { Suspense } from 'react';
|
||||
import { SendMailViewPreviewTabs } from '../SendMailViewDrawer/SendMailViewPreviewTabs';
|
||||
import { Tab } from '@blueprintjs/core';
|
||||
import { EstimateSendPdfPreviewConnected } from './EstimateSendPdfPreviewConnected';
|
||||
import { EstimateSendMailReceiptPreview } from './EstimateSendMailReceiptPreview';
|
||||
import { SendMailViewPreviewTabs } from '../SendMailViewDrawer/SendMailViewPreviewTabs';
|
||||
|
||||
const EstimateSendPdfPreviewConnected = lazy(() =>
|
||||
import('./EstimateSendPdfPreviewConnected').then((module) => ({
|
||||
default: module.EstimateSendPdfPreviewConnected,
|
||||
})),
|
||||
);
|
||||
const EstimateSendMailReceiptPreview = lazy(() =>
|
||||
import('./EstimateSendMailReceiptPreview').then((module) => ({
|
||||
default: module.EstimateSendMailReceiptPreview,
|
||||
})),
|
||||
);
|
||||
|
||||
export function EstimateSendMailPreviewTabs() {
|
||||
return (
|
||||
|
||||
@@ -13,7 +13,7 @@ export function SendMailReceipt({
|
||||
<Stack
|
||||
bg="white"
|
||||
w={'100%'}
|
||||
maxWidth={'500px'}
|
||||
maxWidth={'450px'}
|
||||
p={'35px 25px'}
|
||||
borderRadius={'5px'}
|
||||
boxShadow={'0 10px 15px rgba(0, 0, 0, 0.05)'}
|
||||
|
||||
@@ -80,7 +80,7 @@ export function InvoiceMailReceipt({
|
||||
<Stack
|
||||
bg="white"
|
||||
w={'100%'}
|
||||
maxWidth={'500px'}
|
||||
maxWidth={'450px'}
|
||||
p={'35px 25px'}
|
||||
borderRadius={'5px'}
|
||||
boxShadow={'0 10px 15px rgba(0, 0, 0, 0.05)'}
|
||||
|
||||
@@ -9,14 +9,20 @@ import { useInvoiceSendMailBoot } from './InvoiceSendMailContentBoot';
|
||||
import { InvoiceSendMailPreviewWithHeader } from './InvoiceSendMailHeaderPreview';
|
||||
import { useSendInvoiceMailMessage } from './_hooks';
|
||||
|
||||
const invoiceMailReceiptCss = css`
|
||||
margin: 0 auto;
|
||||
border-radius: 5px !important;
|
||||
transform: scale(0.9);
|
||||
transform-origin: top;
|
||||
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05) !important;
|
||||
`
|
||||
|
||||
export function InvoiceMailReceiptPreviewConnected() {
|
||||
return (
|
||||
<InvoiceSendMailPreviewWithHeader>
|
||||
<Box px={4} pt={8} pb={16}>
|
||||
<InvoiceMailReceiptPreviewWithProps
|
||||
className={css`
|
||||
margin: 0 auto;
|
||||
`}
|
||||
className={invoiceMailReceiptCss}
|
||||
/>
|
||||
</Box>
|
||||
</InvoiceSendMailPreviewWithHeader>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { lazy, Suspense } from 'react';
|
||||
import { Tab, } from '@blueprintjs/core';
|
||||
import { Tab } from '@blueprintjs/core';
|
||||
import { SendMailViewPreviewTabs } from '../../Estimates/SendMailViewDrawer/SendMailViewPreviewTabs';
|
||||
|
||||
const InvoiceMailReceiptPreviewConnected = lazy(() =>
|
||||
|
||||
Reference in New Issue
Block a user