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