refactor: Remove unused routing select component from settings page

This commit is contained in:
wonfen 2025-02-18 09:04:23 +08:00
parent 4333153a59
commit 054f902cc6

View File

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