mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 05:23:44 +08:00
refactor: Remove unused routing select component from settings page
This commit is contained in:
parent
4333153a59
commit
054f902cc6
@ -38,12 +38,6 @@ const SettingPage = () => {
|
||||
const mode = useThemeMode();
|
||||
const isDark = mode === "light" ? false : true;
|
||||
|
||||
const routers = [
|
||||
{ label: "Manual", path: "manual" },
|
||||
{ label: "TG Channel", path: "telegram" },
|
||||
{ label: "Github Repo", path: "github" },
|
||||
];
|
||||
|
||||
return (
|
||||
<BasePage
|
||||
title={t("Settings")}
|
||||
@ -108,15 +102,6 @@ const SettingPage = () => {
|
||||
</Box>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Select size="small" sx={{ width: 140, "> div": { py: "7.5px" } }}>
|
||||
{routers.map((page: { label: string; path: string }) => {
|
||||
return (
|
||||
<MenuItem key={page.path} value={page.path}>
|
||||
{t(page.label)}
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
</Select>
|
||||
</BasePage>
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user