add print form b

This commit is contained in:
2023-12-30 08:22:32 +03:30
parent 00a7ef3ad9
commit 06aff1699e
8 changed files with 599 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import {Box, Container, Divider, Grid, Paper, Stack, Typography} from '@mui/material';
const PrintablePage = ({children, header, footer}) => (
const PrintablePage = ({children, header, footer, paperSx = {}}) => (
<>
<Box sx={{width: "100%", height: 8, displayPrint: 'none'}}/>
<Container
@@ -38,7 +38,7 @@ const PrintablePage = ({children, header, footer}) => (
</Stack>
</Grid>
</Grid>
<Paper elevation={0} sx={{px: 8}}>
<Paper elevation={0} sx={{px: 8, ...paperSx}}>
{children}
</Paper>
<Box sx={{