Forráskód Böngészése

fix: proxy global showType

GyDi 3 éve
szülő
commit
e89607799a
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      src/components/proxy/proxy-global.tsx

+ 2 - 1
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 }}
           />