feat: style the invoice payment preview

This commit is contained in:
Ahmed Bouhuolia
2024-10-22 14:36:53 +02:00
parent c0481f67ad
commit 03e6372f14
3 changed files with 10 additions and 4 deletions

View File

@@ -137,7 +137,7 @@ export function InvoicePaymentPage({
</Group>
<Stack spacing={6}>
<h1 className={styles.bigTitle}>
<h1 className={clsx(styles.bigTitle, classNames?.bigTitle)}>
{organizationName} Sent an Invoice for {total}
</h1>
<Group spacing={10}>

View File

@@ -23,7 +23,7 @@ const withInvoiceMailReceiptPreviewConnected = <P extends Object>(
// organizationAddress: mergedBrandingState,
};
return (
<Box px={4} py={8}>
<Box px={4} pt={8} pb={16}>
<Component {...(props as P)} {...mergedProps} />
</Box>
);

View File

@@ -9,7 +9,6 @@ import { useElementCustomizeContext } from '@/containers/ElementCustomize/Elemen
import { InvoiceCustomizeFormValues } from './types';
import { Box } from '@/components';
const withInvoicePaymentPreviewPageProps = <P extends Object>(
Component: React.ComponentType<P>,
) => {
@@ -26,13 +25,20 @@ const withInvoicePaymentPreviewPageProps = <P extends Object>(
primaryColor: mergedBrandingState?.primaryColor,
};
return (
<Box px={4} py={8}>
<Box px={4} pt={8} pb={16}>
<Component
{...(props as P)}
{...mergedProps}
classNames={{
root: css`
margin: 0 auto;
border-radius: 5px !important;
transform: scale(0.9);
transform-origin: top;
boxshadow: 0 10px 15px rgba(0, 0, 0, 0.05) !important;
`,
bigTitle: css`
color: #333 !important;
`,
}}
/>