diff --git a/src/pages/Proxies.tsx b/src/pages/Proxies.tsx index b36303f..800e6f0 100644 --- a/src/pages/Proxies.tsx +++ b/src/pages/Proxies.tsx @@ -102,57 +102,123 @@ export default () => { return (
- 0}> -
-
- - {(tab) => ( - - )} - -
- - - - - -
- -
+ onClick={() => setActiveTab(tab.type)} + > + {tab.name} +
{tab.count}
+ + )} +
-
+ + + + + +
+ +
+
+ + { + const sortedProxyNames = filterProxiesByAvailability( + sortProxiesByOrderingType( + proxy.all ?? [], + latencyMap(), + proxiesOrderingType(), + ), + latencyMap(), + hideUnAvailableProxies(), + ) + + const title = ( + <> +
+
+ {proxy.name} +
{proxy.all?.length}
+
+ + +
+ +
+ {proxy.type} {proxy.now?.length > 0 && ` :: ${proxy.now}`} +
+ + + + + + ) + + return ( + { + void onProxyNodeClick(proxy, name) + }} + /> + } + onCollapse={(val) => setCollapsedMap(proxy.name, val)} + /> + ) + })} + /> +
+ { @@ -235,74 +301,6 @@ export default () => { })} /> - - - { - const sortedProxyNames = filterProxiesByAvailability( - sortProxiesByOrderingType( - proxy.all ?? [], - latencyMap(), - proxiesOrderingType(), - ), - latencyMap(), - hideUnAvailableProxies(), - ) - - const title = ( - <> -
-
- {proxy.name} -
{proxy.all?.length}
-
- - -
- -
- {proxy.type} {proxy.now?.length > 0 && ` :: ${proxy.now}`} -
- - - - - - ) - - return ( - { - void onProxyNodeClick(proxy, name) - }} - /> - } - onCollapse={(val) => setCollapsedMap(proxy.name, val)} - /> - ) - })} - /> -