bugs fix
This commit is contained in:
@@ -367,8 +367,15 @@ export default function ServiceMonitoring() {
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<Grid item xs={12} paddingY={2}>
|
||||||
|
<Typography component={'h6'} fontWeight={700} fontSize={18}>
|
||||||
|
{loading ? <Skeleton animation="wave" width={175} /> : 'Detail Letter Of Guarante'}
|
||||||
|
</Typography>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item container xs={12} spacing={5}>
|
<Grid item container xs={12} spacing={5}>
|
||||||
<Grid item container xs={12} md={6}>
|
<Grid item container xs={12} md={6}>
|
||||||
@@ -1114,60 +1121,37 @@ export default function ServiceMonitoring() {
|
|||||||
key={dateIndex}
|
key={dateIndex}
|
||||||
>
|
>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Typography variant="subtitle1">{date ? date : '-'}</Typography>
|
<Typography variant="subtitle1">{date ? date : '-'}</Typography>
|
||||||
{data.laboratoriumResults[date].map(
|
{data.laboratoriumResults[date]?.map((laboratoriumResult, laboratoriumResultIndex) => (
|
||||||
(laboratoriumResult, laboratoriumResultIndex) => (
|
<Card key={laboratoriumResultIndex} sx={{ marginTop: 3, paddingX: 2.5, paddingY: 2 }}>
|
||||||
<Card
|
<Label>{laboratoriumResult.code || '-'}</Label>
|
||||||
key={laboratoriumResultIndex}
|
<Table sx={{ marginY: 2 }}>
|
||||||
sx={{ marginTop: 3, paddingX: 2.5, paddingY: 2 }}
|
<TableHead>
|
||||||
>
|
<TableRow>
|
||||||
<Label>
|
<TableCell>Date</TableCell>
|
||||||
{laboratoriumResult.code ? laboratoriumResult.code : '-'}
|
<TableCell>Examination</TableCell>
|
||||||
</Label>
|
<TableCell>Location</TableCell>
|
||||||
<Table sx={{ marginY: 2 }}>
|
</TableRow>
|
||||||
<TableHead>
|
</TableHead>
|
||||||
<TableRow>
|
<TableBody>
|
||||||
<TableCell>Date</TableCell>
|
<TableRow>
|
||||||
<TableCell>Examination</TableCell>
|
<TableCell><Label>{laboratoriumResult.date || '-'}</Label></TableCell>
|
||||||
<TableCell>Location</TableCell>
|
<TableCell>{laboratoriumResult.examination || '-'}</TableCell>
|
||||||
{/* <TableCell /> */}
|
<TableCell>{laboratoriumResult.location || '-'}</TableCell>
|
||||||
</TableRow>
|
{/* <TableMoreMenu
|
||||||
</TableHead>
|
actions={
|
||||||
<TableBody>
|
<>
|
||||||
<TableRow>
|
<MenuItem onClick={() => handleDownloadClick(laboratoriumResult.file)}>
|
||||||
<TableCell>
|
<DownloadIcon /> Download
|
||||||
<Label>
|
</MenuItem>
|
||||||
{laboratoriumResult.date ? laboratoriumResult.date : '-'}
|
</>
|
||||||
</Label>
|
}
|
||||||
</TableCell>
|
/> */}
|
||||||
<TableCell>
|
</TableRow>
|
||||||
{laboratoriumResult.examination
|
</TableBody>
|
||||||
? laboratoriumResult.examination
|
</Table>
|
||||||
: '-'}
|
</Card>
|
||||||
</TableCell>
|
))}
|
||||||
<TableCell>
|
|
||||||
{laboratoriumResult.location
|
|
||||||
? laboratoriumResult.location
|
|
||||||
: '-'}
|
|
||||||
</TableCell>
|
|
||||||
{/* <TableMoreMenu
|
|
||||||
actions={
|
|
||||||
<>
|
|
||||||
<MenuItem
|
|
||||||
onClick={() => handleDownloadClick(laboratoriumResult.file)}
|
|
||||||
>
|
|
||||||
<DownloadIcon />
|
|
||||||
Download
|
|
||||||
</MenuItem>
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
/> */}
|
|
||||||
</TableRow>
|
|
||||||
</TableBody>
|
|
||||||
</Table>
|
|
||||||
</Card>
|
|
||||||
)
|
|
||||||
)}
|
|
||||||
</Stack>
|
</Stack>
|
||||||
</Card>
|
</Card>
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user