mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix(webapp): send mail preview style
This commit is contained in:
@@ -18,7 +18,7 @@ const estimatePreviewCss = css`
|
||||
|
||||
export const EstimateSendMailReceiptPreview = () => {
|
||||
return (
|
||||
<Stack>
|
||||
<Stack spacing={0}>
|
||||
<EstimateSendMailPreviewHeader />
|
||||
|
||||
<Stack px={4} py={6}>
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useDrawerContext } from '@/components/Drawer/DrawerProvider';
|
||||
|
||||
export function EstimateSendPdfPreviewConnected() {
|
||||
return (
|
||||
<Stack>
|
||||
<Stack spacing={0}>
|
||||
<EstimateSendMailPreviewHeader />
|
||||
|
||||
<Stack px={4} py={6}>
|
||||
|
||||
@@ -7,7 +7,7 @@ import { PaymentReceivedMailPreviewHeader } from './PaymentReceivedMailPreviewHe
|
||||
|
||||
export function PaymentReceivedSendMailPreviewPdf() {
|
||||
return (
|
||||
<Stack flex={1}>
|
||||
<Stack flex={1} spacing={0}>
|
||||
<PaymentReceivedMailPreviewHeader />
|
||||
|
||||
<Stack px={4} py={6}>
|
||||
@@ -22,7 +22,6 @@ function PaymentReceivedSendPdfPreviewIframe() {
|
||||
const { data, isLoading } = useGetPaymentReceiveHtml(
|
||||
payload?.paymentReceivedId,
|
||||
);
|
||||
|
||||
if (isLoading && data) {
|
||||
return <Spinner size={20} />;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ const mailReceiptCss = css`
|
||||
|
||||
export function PaymentReceivedMailPreviewReceipt() {
|
||||
return (
|
||||
<Stack flex={1}>
|
||||
<Stack flex={1} spacing={0}>
|
||||
<PaymentReceivedMailPreviewHeader />
|
||||
|
||||
<Stack px={4} py={6}>
|
||||
|
||||
@@ -7,7 +7,7 @@ import { SendMailViewPreviewPdfIframe } from '../../Estimates/SendMailViewDrawer
|
||||
|
||||
export function ReceiptSendMailPdfPreview() {
|
||||
return (
|
||||
<Stack>
|
||||
<Stack spacing={0}>
|
||||
<ReceiptSendMailPreviewHeader />
|
||||
|
||||
<Stack px={4} py={6}>
|
||||
@@ -26,7 +26,5 @@ function ReceiptSendPdfPreviewIframe() {
|
||||
}
|
||||
const iframeSrcDoc = data?.htmlContent;
|
||||
|
||||
console.log(data, 'data');
|
||||
|
||||
return <SendMailViewPreviewPdfIframe srcDoc={iframeSrcDoc} />;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ const receiptPreviewCss = css`
|
||||
|
||||
export function ReceiptSendMailPreview() {
|
||||
return (
|
||||
<Stack>
|
||||
<Stack spacing={0}>
|
||||
<ReceiptSendMailPreviewHeader />
|
||||
|
||||
<Stack px={4} py={6}>
|
||||
|
||||
Reference in New Issue
Block a user