mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
feat: display version
This commit is contained in:
parent
01e8db317e
commit
61b9670b45
|
@ -1,5 +1,11 @@
|
|||
import useSWR, { useSWRConfig } from "swr";
|
||||
import { List, ListItemText, ListSubheader, Switch } from "@mui/material";
|
||||
import {
|
||||
List,
|
||||
ListItemText,
|
||||
ListSubheader,
|
||||
Switch,
|
||||
Typography,
|
||||
} from "@mui/material";
|
||||
import {
|
||||
getVergeConfig,
|
||||
patchVergeConfig,
|
||||
|
@ -9,6 +15,7 @@ import { CmdType } from "../services/types";
|
|||
import GuardState from "./guard-state";
|
||||
import SettingItem from "./setting-item";
|
||||
import PaletteSwitch from "./palette-switch";
|
||||
import { version } from "../../package.json";
|
||||
|
||||
interface Props {
|
||||
onError?: (err: Error) => void;
|
||||
|
@ -82,6 +89,11 @@ const SettingVerge = ({ onError }: Props) => {
|
|||
<Switch edge="end" />
|
||||
</GuardState>
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem>
|
||||
<ListItemText primary="Version" />
|
||||
<Typography sx={{ py: "6px" }}>v{version}</Typography>
|
||||
</SettingItem>
|
||||
</List>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user