From e89607799abc6b59029b738b85210c39d4fd8c4d Mon Sep 17 00:00:00 2001
From: GyDi <segydi@foxmail.com>
Date: Sun, 27 Feb 2022 01:33:22 +0800
Subject: [PATCH] fix: proxy global showType

---
 src/components/proxy/proxy-global.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/proxy/proxy-global.tsx b/src/components/proxy/proxy-global.tsx
index de28b7f..ac64a77 100644
--- a/src/components/proxy/proxy-global.tsx
+++ b/src/components/proxy/proxy-global.tsx
@@ -28,7 +28,7 @@ const ProxyGlobal = (props: Props) => {
 
   const { mutate } = useSWRConfig();
   const [now, setNow] = useState(curProxy || "DIRECT");
-  const [showType, setShowType] = useState(false);
+  const [showType, setShowType] = useState(true);
   const [showFilter, setShowFilter] = useState(false);
   const [filterText, setFilterText] = useState("");
 
@@ -137,6 +137,7 @@ const ProxyGlobal = (props: Props) => {
             groupName={groupName}
             proxy={filterProxies[index]}
             selected={filterProxies[index].name === now}
+            showType={showType}
             onClick={onChangeProxy}
             sx={{ py: 0, px: 2 }}
           />
-- 
GitLab