Skip to content
Snippets Groups Projects
Commit 61b9670b authored by GyDi's avatar GyDi
Browse files

feat: display version

parent 01e8db31
No related branches found
No related tags found
No related merge requests found
import useSWR, { useSWRConfig } from "swr"; import useSWR, { useSWRConfig } from "swr";
import { List, ListItemText, ListSubheader, Switch } from "@mui/material"; import {
List,
ListItemText,
ListSubheader,
Switch,
Typography,
} from "@mui/material";
import { import {
getVergeConfig, getVergeConfig,
patchVergeConfig, patchVergeConfig,
...@@ -9,6 +15,7 @@ import { CmdType } from "../services/types"; ...@@ -9,6 +15,7 @@ import { CmdType } from "../services/types";
import GuardState from "./guard-state"; import GuardState from "./guard-state";
import SettingItem from "./setting-item"; import SettingItem from "./setting-item";
import PaletteSwitch from "./palette-switch"; import PaletteSwitch from "./palette-switch";
import { version } from "../../package.json";
interface Props { interface Props {
onError?: (err: Error) => void; onError?: (err: Error) => void;
...@@ -82,6 +89,11 @@ const SettingVerge = ({ onError }: Props) => { ...@@ -82,6 +89,11 @@ const SettingVerge = ({ onError }: Props) => {
<Switch edge="end" /> <Switch edge="end" />
</GuardState> </GuardState>
</SettingItem> </SettingItem>
<SettingItem>
<ListItemText primary="Version" />
<Typography sx={{ py: "6px" }}>v{version}</Typography>
</SettingItem>
</List> </List>
); );
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment