Fix lint errors by removing unused imports and vars

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2024-09-04 17:49:08 +02:00
parent 7103b35568
commit d36e049d79
4 changed files with 6 additions and 45 deletions

View file

@ -1,42 +1,7 @@
import {
ActionIcon,
Alert,
Box,
Card,
Group,
Select,
Skeleton,
Stack,
Table,
Text,
} from "@mantine/core";
import {
IconBell,
IconBellOff,
IconInfoCircle,
IconLayoutNavbarCollapse,
IconLayoutNavbarExpand,
IconSearch,
} from "@tabler/icons-react";
import { Suspense } from "react";
import { useAppDispatch, useAppSelector } from "../state/hooks";
import { Alert, Card, Group, Stack, Table, Text } from "@mantine/core";
import { IconBell, IconBellOff, IconInfoCircle } from "@tabler/icons-react";
import {
ArrayParam,
StringParam,
useQueryParam,
withDefault,
} from "use-query-params";
import ErrorBoundary from "../components/ErrorBoundary";
import ScrapePoolList from "./ServiceDiscoveryPoolsList";
import { useSuspenseAPIQuery } from "../api/api";
import { ScrapePoolsResult } from "../api/responseTypes/scrapePools";
import {
setCollapsedPools,
setShowLimitAlert,
} from "../state/serviceDiscoveryPageSlice";
import { StateMultiSelect } from "../components/StateMultiSelect";
import badgeClasses from "../Badge.module.css";
import { AlertmanagersResult } from "../api/responseTypes/alertmanagers";
import EndpointLink from "../components/EndpointLink";

View file

@ -16,7 +16,7 @@ import {
PromQLExtension,
newCompleteStrategy,
} from "@prometheus-io/codemirror-promql";
import { FC, Suspense, useEffect, useMemo, useRef, useState } from "react";
import { FC, Suspense, useEffect, useRef, useState } from "react";
import CodeMirror, {
EditorState,
EditorView,

View file

@ -17,11 +17,7 @@ import {
RangeSamples,
} from "../../api/responseTypes/query";
import serializeNode from "../../promql/serialize";
import {
IconAlertTriangle,
IconPoint,
IconPointFilled,
} from "@tabler/icons-react";
import { IconPointFilled } from "@tabler/icons-react";
import classes from "./TreeNode.module.css";
import clsx from "clsx";
import { useId } from "@mantine/hooks";
@ -90,7 +86,7 @@ const TreeNode: FC<{
[childStates]
);
const { data, error, isFetching, refetch } = useAPIQuery<InstantQueryResult>({
const { data, error, isFetching } = useAPIQuery<InstantQueryResult>({
key: [useId()],
path: "/query",
params: {

View file

@ -1,4 +1,4 @@
import { FC, useState } from "react";
import { FC } from "react";
import { useSuspenseAPIQuery } from "../../api/api";
import { useAppSelector } from "../../state/hooks";
import ASTNode from "../../promql/ast";