From 0ea16e4620bfef996fac37f230c68622e89279d3 Mon Sep 17 00:00:00 2001 From: EthanHealy01 Date: Tue, 28 Oct 2025 04:06:01 +0000 Subject: [PATCH] lint --- frontend/src/components/shared/TopControls.tsx | 5 ++--- .../components/tools/compare/CompareNavigationDropdown.tsx | 2 -- .../tools/compare/hooks/useCompareRightRailButtons.tsx | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/shared/TopControls.tsx b/frontend/src/components/shared/TopControls.tsx index d47877d90..397e2b32a 100644 --- a/frontend/src/components/shared/TopControls.tsx +++ b/frontend/src/components/shared/TopControls.tsx @@ -1,6 +1,5 @@ -import React, { useState, useCallback, useMemo } from "react"; -import { SegmentedControl, Loader, Menu, Button } from "@mantine/core"; -import { useMediaQuery } from "@mantine/hooks"; +import React, { useState, useCallback } from "react"; +import { SegmentedControl, Loader } from "@mantine/core"; import { useRainbowThemeContext } from "./RainbowThemeProvider"; import rainbowStyles from '../../styles/rainbow.module.css'; import VisibilityIcon from "@mui/icons-material/Visibility"; diff --git a/frontend/src/components/tools/compare/CompareNavigationDropdown.tsx b/frontend/src/components/tools/compare/CompareNavigationDropdown.tsx index b7fd05904..e89241678 100644 --- a/frontend/src/components/tools/compare/CompareNavigationDropdown.tsx +++ b/frontend/src/components/tools/compare/CompareNavigationDropdown.tsx @@ -17,8 +17,6 @@ const CompareNavigationDropdown = ({ }: NavigationDropdownProps) => { const { t } = useTranslation(); const newLineLabel = t('compare.newLine', 'new-line'); - const formatPageLabel = (page: number) => - t('compare.dropdown.pagePrefix', { page, defaultValue: 'Page {{page}}' }); const combobox = useCombobox({ onDropdownClose: () => { combobox.resetSelectedOption(); diff --git a/frontend/src/components/tools/compare/hooks/useCompareRightRailButtons.tsx b/frontend/src/components/tools/compare/hooks/useCompareRightRailButtons.tsx index 62d1ab27f..8b0b856fb 100644 --- a/frontend/src/components/tools/compare/hooks/useCompareRightRailButtons.tsx +++ b/frontend/src/components/tools/compare/hooks/useCompareRightRailButtons.tsx @@ -1,8 +1,6 @@ import { useMemo } from 'react'; -import { ActionIcon } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import LocalIcon from '../../../shared/LocalIcon'; -import { Tooltip } from '../../../shared/Tooltip'; import { alert } from '../../../toast'; import type { ToastLocation } from '../../../toast/types'; import type { RightRailButtonWithAction } from '../../../../hooks/useRightRailButtons';