refactor: remove unused imports and adjust button height in logs and rules pages
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
|||||||
PlayCircleOutlineRounded,
|
PlayCircleOutlineRounded,
|
||||||
PauseCircleOutlineRounded,
|
PauseCircleOutlineRounded,
|
||||||
} from "@mui/icons-material";
|
} 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 { useClashInfo } from "@/hooks/use-clash";
|
||||||
import { useEnableLog } from "@/services/states";
|
import { useEnableLog } from "@/services/states";
|
||||||
import { BaseEmpty, BasePage } from "@/components/base";
|
import { BaseEmpty, BasePage } from "@/components/base";
|
||||||
@@ -112,7 +112,7 @@ const LogPage = () => {
|
|||||||
pt: 1,
|
pt: 1,
|
||||||
mb: 0.5,
|
mb: 0.5,
|
||||||
mx: "10px",
|
mx: "10px",
|
||||||
height: "36px",
|
height: "39px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import { BaseEmpty, BasePage } from "@/components/base";
|
|||||||
import RuleItem from "@/components/rule/rule-item";
|
import RuleItem from "@/components/rule/rule-item";
|
||||||
import { ProviderButton } from "@/components/rule/provider-button";
|
import { ProviderButton } from "@/components/rule/provider-button";
|
||||||
import { BaseSearchBox } from "@/components/base/base-search-box";
|
import { BaseSearchBox } from "@/components/base/base-search-box";
|
||||||
import { useTheme } from "@mui/material/styles";
|
|
||||||
import { ScrollTopButton } from "@/components/layout/scroll-top-button";
|
import { ScrollTopButton } from "@/components/layout/scroll-top-button";
|
||||||
import { useAppData } from "@/providers/app-data-provider";
|
import { useAppData } from "@/providers/app-data-provider";
|
||||||
import { useVisibility } from "@/hooks/use-visibility";
|
import { useVisibility } from "@/hooks/use-visibility";
|
||||||
@@ -14,8 +13,6 @@ import { useVisibility } from "@/hooks/use-visibility";
|
|||||||
const RulesPage = () => {
|
const RulesPage = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { rules = [], refreshRules, refreshRuleProviders } = useAppData();
|
const { rules = [], refreshRules, refreshRuleProviders } = useAppData();
|
||||||
const theme = useTheme();
|
|
||||||
const isDark = theme.palette.mode === "dark";
|
|
||||||
const [match, setMatch] = useState(() => (_: string) => true);
|
const [match, setMatch] = useState(() => (_: string) => true);
|
||||||
const virtuosoRef = useRef<VirtuosoHandle>(null);
|
const virtuosoRef = useRef<VirtuosoHandle>(null);
|
||||||
const [showScrollTop, setShowScrollTop] = useState(false);
|
const [showScrollTop, setShowScrollTop] = useState(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user