ts
This commit is contained in:
1 parent
5780c0b969
commit
c50b0cbfd6
4 files changed
+4
-6
No files matched your search
@@ -11,7 +11,6 @@ import {
|
|||||||
type UptimeMonitorType,
|
type UptimeMonitorType,
|
||||||
type MonitorStatus,
|
type MonitorStatus,
|
||||||
} from "@/types/monitor";
|
} from "@/types/monitor";
|
||||||
import { ThemeContext } from "@emotion/react";
|
|
||||||
|
|
||||||
type HeaderFilterProps = {
|
type HeaderFilterProps = {
|
||||||
selectedTypes: UptimeMonitorType[];
|
selectedTypes: UptimeMonitorType[];
|
||||||
|
|||||||
@@ -2,9 +2,8 @@ import Stack from "@mui/material/Stack";
|
|||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import type { ICheck } from "@/types/check";
|
import type { ICheck } from "@/types/check";
|
||||||
import { HistogramResponseTimeTooltip } from "@/components/monitors/HistogramResponseTimeTooltip";
|
|
||||||
import { normalizeResponseTimes } from "@/utils/DataUtils";
|
import { normalizeResponseTimes } from "@/utils/DataUtils";
|
||||||
|
import { HeatmapResponseTimeTooltip } from "../common/HeatmapResponseTimeTooltip";
|
||||||
const BAR_HEIGHT = "50px";
|
const BAR_HEIGHT = "50px";
|
||||||
|
|
||||||
export const HistogramStatusPage = ({ checks }: { checks: ICheck[] }) => {
|
export const HistogramStatusPage = ({ checks }: { checks: ICheck[] }) => {
|
||||||
@@ -36,7 +35,7 @@ export const HistogramStatusPage = ({ checks }: { checks: ICheck[] }) => {
|
|||||||
>
|
>
|
||||||
{data.map((check, index) => {
|
{data.map((check, index) => {
|
||||||
return (
|
return (
|
||||||
<HistogramResponseTimeTooltip key={`${check}-${index}`} check={check}>
|
<HeatmapResponseTimeTooltip key={`${check}-${index}`} check={check}>
|
||||||
<Box
|
<Box
|
||||||
position="relative"
|
position="relative"
|
||||||
width={{
|
width={{
|
||||||
@@ -64,7 +63,7 @@ export const HistogramStatusPage = ({ checks }: { checks: ICheck[] }) => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
</HistogramResponseTimeTooltip>
|
</HeatmapResponseTimeTooltip>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import { useTheme } from "@mui/material/styles";
|
|||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
import { useAppDispatch } from "@/hooks/AppHooks";
|
import { useAppDispatch } from "@/hooks/AppHooks";
|
||||||
import { usePost } from "@/hooks/UseApi";
|
import { usePost } from "@/hooks/UseApi";
|
||||||
|
import { logout } from "@/features/authSlice";
|
||||||
|
|
||||||
const NoTeam = () => {
|
const NoTeam = () => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import MenuItem from "@mui/material/MenuItem";
|
|||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import { SettingsForm } from "@/pages/settings/SettingsForm";
|
import { SettingsForm } from "@/pages/settings/SettingsForm";
|
||||||
|
|
||||||
import type { ChartType } from "@/features/uiSlice";
|
|
||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import { useEffect, useMemo, useState } from "react";
|
import { useEffect, useMemo, useState } from "react";
|
||||||
import { setTimezone, setMode, setChartType } from "@/features/uiSlice";
|
import { setTimezone, setMode, setChartType } from "@/features/uiSlice";
|
||||||
|
|||||||
Reference in new issue
Block a user