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
parent d60c3b4d64
commit 998ded5e0b
2 changed files with 2 additions and 5 deletions

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);