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