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