build errors
This commit is contained in:
1 parent
d71c7c6ee1
commit
967b2b200b
4 files changed
+32
-18
No files matched your search
@@ -66,7 +66,7 @@ export const HeaderMonitorControls = ({
|
||||
variant="contained"
|
||||
color="secondary"
|
||||
startIcon={<Icon icon={Bug} />}
|
||||
onClick={(e) => {
|
||||
onClick={() => {
|
||||
navigate(`/incidents/${monitor?.id}`);
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -37,10 +37,30 @@ export const HeaderTimeRange = ({
|
||||
onChange={handleChange}
|
||||
size="small"
|
||||
>
|
||||
<ToggleButton value="recent">Recent</ToggleButton>
|
||||
<ToggleButton value="day">Day</ToggleButton>
|
||||
<ToggleButton value="week">Week</ToggleButton>
|
||||
<ToggleButton value="month">Month</ToggleButton>
|
||||
<ToggleButton
|
||||
disabled={isLoading}
|
||||
value="recent"
|
||||
>
|
||||
Recent
|
||||
</ToggleButton>
|
||||
<ToggleButton
|
||||
disabled={isLoading}
|
||||
value="day"
|
||||
>
|
||||
Day
|
||||
</ToggleButton>
|
||||
<ToggleButton
|
||||
disabled={isLoading}
|
||||
value="week"
|
||||
>
|
||||
Week
|
||||
</ToggleButton>
|
||||
<ToggleButton
|
||||
disabled={isLoading}
|
||||
value="month"
|
||||
>
|
||||
Month
|
||||
</ToggleButton>
|
||||
</ToggleButtonGroup>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ import { useTranslation } from "react-i18next";
|
||||
import { ResponsiveContainer, BarChart, XAxis, Bar, Cell, Tooltip } from "recharts";
|
||||
import { getResponseTimeColor } from "@/Utils/MonitorUtils";
|
||||
import type { GroupedCheck } from "@/Types/Check";
|
||||
import type { MonitorData } from "@/Types/Monitor";
|
||||
import type { RootState } from "@/Types/state";
|
||||
|
||||
interface XLabelProps {
|
||||
@@ -50,7 +49,6 @@ const XLabel = ({ p1, p2, range }: XLabelProps) => {
|
||||
interface HistogramStatusProps {
|
||||
title: string;
|
||||
icon: React.ReactNode;
|
||||
monitorData?: MonitorData;
|
||||
checks?: GroupedCheck[];
|
||||
range: string;
|
||||
}
|
||||
@@ -58,7 +56,6 @@ interface HistogramStatusProps {
|
||||
export const HistogramStatus = ({
|
||||
title,
|
||||
icon,
|
||||
monitorData,
|
||||
checks = [],
|
||||
range,
|
||||
}: HistogramStatusProps) => {
|
||||
|
||||
Reference in new issue
Block a user