refactor: remove unused imports and adjust button height in logs and rules pages

This commit is contained in:
Tunglies
2025-05-21 10:25:50 +08:00
Unverified
parent d60c3b4d64
commit 998ded5e0b
2 changed files with 2 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ import {
PlayCircleOutlineRounded,
PauseCircleOutlineRounded,
} from "@mui/icons-material";
import { LogLevel, clearLogs } from "@/hooks/use-log-data";
import { LogLevel } from "@/hooks/use-log-data";
import { useClashInfo } from "@/hooks/use-clash";
import { useEnableLog } from "@/services/states";
import { BaseEmpty, BasePage } from "@/components/base";
@@ -112,7 +112,7 @@ const LogPage = () => {
pt: 1,
mb: 0.5,
mx: "10px",
height: "36px",
height: "39px",
display: "flex",
alignItems: "center",
}}

View File

@@ -6,7 +6,6 @@ import { BaseEmpty, BasePage } from "@/components/base";
import RuleItem from "@/components/rule/rule-item";
import { ProviderButton } from "@/components/rule/provider-button";
import { BaseSearchBox } from "@/components/base/base-search-box";
import { useTheme } from "@mui/material/styles";
import { ScrollTopButton } from "@/components/layout/scroll-top-button";
import { useAppData } from "@/providers/app-data-provider";
import { useVisibility } from "@/hooks/use-visibility";
@@ -14,8 +13,6 @@ import { useVisibility } from "@/hooks/use-visibility";
const RulesPage = () => {
const { t } = useTranslation();
const { rules = [], refreshRules, refreshRuleProviders } = useAppData();
const theme = useTheme();
const isDark = theme.palette.mode === "dark";
const [match, setMatch] = useState(() => (_: string) => true);
const virtuosoRef = useRef<VirtuosoHandle>(null);
const [showScrollTop, setShowScrollTop] = useState(false);