fix(client): resolve linting warnings in IncidentModal

This commit is contained in:
nikhil2004 committed 2026-09-22 03:31:15 +05:30
1 parent 2c896a5506
commit c3598a67fa
1 file changed
+8 -5
@@ -54,18 +54,21 @@ export const IncidentModal = ({ url, monitorId, date, onClose }: IncidentModalPr
</DialogTitle> </DialogTitle>
<DialogContent> <DialogContent>
{isLoading ? ( {isLoading ? (
<Typography sx={{ mt: 1 }}> <Typography mt={1}>
{t("pages.statusPages.monitorsList.incidents.loading")} {t("pages.statusPages.monitorsList.incidents.loading")}
</Typography> </Typography>
) : data?.incidents && data.incidents.length > 0 ? ( ) : data?.incidents && data.incidents.length > 0 ? (
<Stack <Stack
gap={2} gap={2}
sx={{ mt: 1 }} mt={1}
> >
{data.incidents.map((incident) => ( {data.incidents.map((incident) => (
<Stack <Stack
key={incident.id} key={incident.id}
sx={{ p: 2, border: 1, borderColor: "divider", borderRadius: 1 }} p={2}
border={1}
borderColor="divider"
borderRadius={1}
> >
<Typography <Typography
variant="subtitle2" variant="subtitle2"
@@ -76,7 +79,7 @@ export const IncidentModal = ({ url, monitorId, date, onClose }: IncidentModalPr
</Typography> </Typography>
<Typography <Typography
variant="body2" variant="body2"
color="text.secondary" color={(theme) => theme.palette.text.secondary}
> >
{new Date(incident.startTime).toLocaleTimeString()} -{" "} {new Date(incident.startTime).toLocaleTimeString()} -{" "}
{incident.endTime {incident.endTime
@@ -87,7 +90,7 @@ export const IncidentModal = ({ url, monitorId, date, onClose }: IncidentModalPr
))} ))}
</Stack> </Stack>
) : ( ) : (
<Typography sx={{ mt: 1 }}> <Typography mt={1}>
{t("pages.statusPages.monitorsList.incidents.noIncidents")} {t("pages.statusPages.monitorsList.incidents.noIncidents")}
</Typography> </Typography>
)} )}