From 2bcaf90fc842cb904c80d5b8582b0659f451811f Mon Sep 17 00:00:00 2001 From: GyDi Date: Sat, 5 Aug 2023 19:54:59 +0800 Subject: [PATCH] feat: add repo link --- src/pages/settings.tsx | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/pages/settings.tsx b/src/pages/settings.tsx index 9904335..039513b 100644 --- a/src/pages/settings.tsx +++ b/src/pages/settings.tsx @@ -1,6 +1,9 @@ -import { Paper } from "@mui/material"; +import { IconButton, Paper } from "@mui/material"; +import { useLockFn } from "ahooks"; import { useTranslation } from "react-i18next"; import { BasePage, Notice } from "@/components/base"; +import { GitHub } from "@mui/icons-material"; +import { openWebUrl } from "@/services/cmds"; import SettingVerge from "@/components/setting/setting-verge"; import SettingClash from "@/components/setting/setting-clash"; import SettingSystem from "@/components/setting/setting-system"; @@ -12,8 +15,24 @@ const SettingPage = () => { Notice.error(err?.message || err.toString()); }; + const toGithubRepo = useLockFn(() => { + return openWebUrl("https://github.com/zzzgydi/clash-verge"); + }); + return ( - + + + + } + >