Fix build errors and formatting

- Replace CheckIcon SVG import with Lucide Icon component in
  LatestIncidentsPanel/index.jsx
- Format IncidentItem.jsx and StatisticsPanel.jsx with Prettier
This commit is contained in:
gorkem-bwl committed 2026-01-16 14:44:28 -05:00
1 parent 4fdc0bde5c
commit 5c52a208b9
4 files changed
+169 -17

No files matched your search

@@ -67,7 +67,10 @@ const IncidentItem = ({ incident }) => {
gap={theme.spacing(2)}
>
<Box sx={iconWrapperStyle}>
<Icon name="Globe" size={18} />
<Icon
name="Globe"
size={18}
/>
</Box>
<Typography
variant="body1"
@@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next";
import PanelSkeleton from "../IncidentsSummaryPanel/skeleton.jsx";
import IncidentItem from "./IncidentItem.jsx";
import SummaryCard from "../SummaryCard/index.jsx";
import CheckIcon from "@/assets/icons/check-icon.svg?react";
import Icon from "@/Components/v1/Icon";
/**
* LatestIncidentsPanel Component
@@ -60,18 +60,13 @@ const LatestIncidentsPanel = ({ incidents = [], isLoading = false, error = null
gap={theme.spacing(2)}
sx={{ flex: 1 }}
>
<Box
sx={{
color: theme.palette.success.main,
"& svg": {
width: 24,
height: 24,
"& path": { stroke: "currentColor", strokeWidth: 2 },
},
mb: theme.spacing(1),
}}
>
<CheckIcon />
<Box sx={{ mb: theme.spacing(1) }}>
<Icon
name="Check"
size={24}
color={theme.palette.success.main}
strokeWidth={2}
/>
</Box>
<Typography
@@ -96,7 +96,10 @@ const StatisticsPanel = ({ isLoading = false, error = null, summary = {} }) => {
sx={rowStyle}
>
<Box sx={iconWrapperStyle}>
<Icon name="Bell" size={18} />
<Icon
name="Bell"
size={18}
/>
</Box>
<Typography
variant="body1"
@@ -115,7 +118,10 @@ const StatisticsPanel = ({ isLoading = false, error = null, summary = {} }) => {
sx={rowStyle}
>
<Box sx={iconWrapperStyle}>
<Icon name="AlertTriangle" size={18} />
<Icon
name="AlertTriangle"
size={18}
/>
</Box>
<Typography
variant="body1"
@@ -133,7 +139,10 @@ const StatisticsPanel = ({ isLoading = false, error = null, summary = {} }) => {
sx={rowStyle}
>
<Box sx={iconWrapperStyle}>
<Icon name="Wrench" size={18} />
<Icon
name="Wrench"
size={18}
/>
</Box>
<Typography
variant="body1"