mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:53:44 +08:00
refactor: Remove unused routing select component from settings page
This commit is contained in:
parent
3c2e04290c
commit
94b75f463b
@ -38,12 +38,6 @@ const SettingPage = () => {
|
|||||||
const mode = useThemeMode();
|
const mode = useThemeMode();
|
||||||
const isDark = mode === "light" ? false : true;
|
const isDark = mode === "light" ? false : true;
|
||||||
|
|
||||||
const routers = [
|
|
||||||
{ label: "Manual", path: "manual" },
|
|
||||||
{ label: "TG Channel", path: "telegram" },
|
|
||||||
{ label: "Github Repo", path: "github" },
|
|
||||||
];
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BasePage
|
<BasePage
|
||||||
title={t("Settings")}
|
title={t("Settings")}
|
||||||
@ -108,15 +102,6 @@ const SettingPage = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
</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>
|
</BasePage>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user