fix: resolve client CI build and Prettier formatting errors

This commit is contained in:
nikhil2004 committed 2026-09-22 03:31:15 +05:30
1 parent c3598a67fa
commit 6196b81fe4
5 files changed
+17558 -14449

No files matched your search

@@ -8,6 +8,7 @@ import { X as XIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { useGet } from "@/Hooks/UseApi";
interface Incident {
id: string;
message: string | null;
@@ -79,7 +80,7 @@ export const IncidentModal = ({ url, monitorId, date, onClose }: IncidentModalPr
</Typography>
<Typography
variant="body2"
color={(theme) => theme.palette.text.secondary}
color="text.secondary"
>
{new Date(incident.startTime).toLocaleTimeString()} -{" "}
{incident.endTime
@@ -20,10 +20,7 @@ export const ThemedHeatmap = ({ cells, containerSx, cellSx, onCellClick }: Props
return (
<Box
sx={mergeSx(
containerSx,
{ gridTemplateColumns: `repeat(${cells.length}, 1fr)` }
)}
sx={mergeSx(containerSx, { gridTemplateColumns: `repeat(${cells.length}, 1fr)` })}
role="img"
aria-label={t("pages.statusPages.monitorsList.chart.heatmapAria")}
>
@@ -42,10 +42,7 @@ export const ThemedHistogram = ({
return (
<Stack gap={statsGap}>
<Box
sx={mergeSx(
containerSx,
{ gridTemplateColumns: `repeat(${cells.length}, 1fr)` }
)}
sx={mergeSx(containerSx, { gridTemplateColumns: `repeat(${cells.length}, 1fr)` })}
>
{cells.map((cell) => {
if (cell.barKind === "empty") {
+3 -1
View File
@@ -1,6 +1,8 @@
import type { SxProps, Theme } from "@mui/material/styles";
export const mergeSx = (...styles: Array<SxProps<Theme> | false | null | undefined>): SxProps<Theme> =>
export const mergeSx = (
...styles: Array<SxProps<Theme> | false | null | undefined>
): SxProps<Theme> =>
styles
.flatMap((style) => (Array.isArray(style) ? style : [style]))
.filter(Boolean) as SxProps<Theme>;
+17551 -14439
View File
File diff suppressed because it is too large. Load diff