From 61b9670b457e9257509d8b9cbc6e0bcc284cc237 Mon Sep 17 00:00:00 2001 From: GyDi Date: Tue, 28 Dec 2021 01:35:58 +0800 Subject: [PATCH] feat: display version --- src/components/setting-verge.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/setting-verge.tsx b/src/components/setting-verge.tsx index 2f9fedb..abbf5aa 100644 --- a/src/components/setting-verge.tsx +++ b/src/components/setting-verge.tsx @@ -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) => { + + + + v{version} + ); };