[Improvement] input Daily Monitoring
This commit is contained in:
@@ -1029,23 +1029,56 @@ export default function ServiceMonitoring() {
|
||||
</Stack>
|
||||
<Stack spacing={1}>
|
||||
<Typography variant="h6" sx={{ paddingTop: 2 }}>
|
||||
Perencanaan
|
||||
Medical Plan :
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Grid item xs={12} lg={12} md={12}>
|
||||
<Stack marginLeft={5}>
|
||||
{data.dailyMonitorings ? (
|
||||
<ul style={{ listStyleType: 'disc' }}>
|
||||
{dailyMonitoring.plans.length > 0 &&
|
||||
dailyMonitoring.plans.map((plan, planIndex) => (
|
||||
<Stack marginLeft={5}>
|
||||
{data.dailyMonitorings ? (
|
||||
<ul style={{ listStyleType: 'disc' }}>
|
||||
{dailyMonitoring.plans.length > 0 ? (
|
||||
dailyMonitoring.plans.map((plan, planIndex) =>
|
||||
plan.type === 1 ? (
|
||||
<li key={planIndex}>{plan.plan}</li>
|
||||
))}
|
||||
</ul>
|
||||
) : (
|
||||
'-'
|
||||
)}
|
||||
</Stack>
|
||||
) : null
|
||||
)
|
||||
) : (
|
||||
<li>No plans available</li>
|
||||
)}
|
||||
</ul>
|
||||
) : (
|
||||
'-'
|
||||
)}
|
||||
</Stack>
|
||||
|
||||
</Grid>
|
||||
</Stack>
|
||||
<Stack spacing={1}>
|
||||
<Typography variant="h6" sx={{ paddingTop: 2 }}>
|
||||
Non Medikamentosa Plan :
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Grid item xs={12} lg={12} md={12}>
|
||||
<Stack marginLeft={5}>
|
||||
{data.dailyMonitorings ? (
|
||||
<ul style={{ listStyleType: 'disc' }}>
|
||||
{dailyMonitoring.plans.length > 0 ? (
|
||||
dailyMonitoring.plans.map((plan, planIndex) =>
|
||||
plan.type === 2 ? (
|
||||
<li key={planIndex}>{plan.plan}</li>
|
||||
) : null
|
||||
)
|
||||
) : (
|
||||
<li>No plans available</li>
|
||||
)}
|
||||
</ul>
|
||||
) : (
|
||||
'-'
|
||||
)}
|
||||
</Stack>
|
||||
|
||||
</Grid>
|
||||
</Stack>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user