Remove unused imports in new UI to fix build

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2024-07-23 11:35:37 +02:00
parent d6f4d3a00b
commit 1b2290c131
3 changed files with 3 additions and 10 deletions

View file

@ -33,8 +33,6 @@ import ExpressionInput from "./ExpressionInput";
import Graph from "./Graph";
import {
formatPrometheusDuration,
formatTimestamp,
now,
parsePrometheusDuration,
} from "../../lib/formatTime";

View file

@ -12,7 +12,6 @@ import { computePosition, shift, flip, offset } from "@floating-ui/dom";
import { colorPool } from "./ColorPool";
import { useSettings } from "../../state/settingsSlice";
import { useComputedColorScheme } from "@mantine/core";
import { fill } from "lodash";
const formatYAxisTickValue = (y: number | null): string => {
if (y === null) {
@ -127,7 +126,8 @@ const tooltipPlugin = (useLocalTime: boolean) => {
boundingTop = bbox.top;
},
// When a series is selected by hovering close to it, store the
// index of the selected series.
// index of the selected series, so we can update the hover tooltip
// in setCursor.
setSeries: (_u: uPlot, seriesIdx: number | null, _opts: Series) => {
selectedSeriesIdx = seriesIdx;
},

View file

@ -1,11 +1,6 @@
import { randomId } from "@mantine/hooks";
import {
PayloadAction,
createListenerMiddleware,
createSlice,
} from "@reduxjs/toolkit";
import { PayloadAction, createSlice } from "@reduxjs/toolkit";
import { encodePanelOptionsToURLParams } from "../pages/query/urlStateEncoding";
import { update } from "lodash";
export enum GraphDisplayMode {
Lines = "lines",