From 4953d4b4d0ee84f9637b19cfe4483f41c6bcff3a Mon Sep 17 00:00:00 2001 From: huzibaca Date: Tue, 5 Nov 2024 17:39:59 +0800 Subject: [PATCH] chore: add tooltip --- src/components/setting/setting-clash.tsx | 21 +++++++++++++++++++-- src/locales/en.json | 1 + src/locales/fa.json | 1 + src/locales/ru.json | 1 + src/locales/zh.json | 1 + 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/components/setting/setting-clash.tsx b/src/components/setting/setting-clash.tsx index aa31a98..9ef77c0 100644 --- a/src/components/setting/setting-clash.tsx +++ b/src/components/setting/setting-clash.tsx @@ -1,11 +1,19 @@ import { useRef } from "react"; import { useTranslation } from "react-i18next"; -import { TextField, Select, MenuItem, Typography } from "@mui/material"; +import { + TextField, + Select, + MenuItem, + Typography, + Tooltip, + IconButton, +} from "@mui/material"; import { SettingsRounded, ShuffleRounded, LanRounded, + InfoRounded, } from "@mui/icons-material"; import { DialogRef, Notice, Switch } from "@/components/base"; import { useClash } from "@/hooks/use-clash"; @@ -111,7 +119,16 @@ const SettingClash = ({ onError }: Props) => { - + + + + + + } + >