diff --git a/src/pages/Proxies.tsx b/src/pages/Proxies.tsx index 014eaa8..a38cf29 100644 --- a/src/pages/Proxies.tsx +++ b/src/pages/Proxies.tsx @@ -19,7 +19,6 @@ import { proxiesOrderingType, useProxies } from '~/signals' import type { Proxy } from '~/types' enum ActiveTab { - all = 'all', proxyProviders = 'proxyProviders', proxies = 'proxies', } @@ -75,66 +74,60 @@ export default () => { setIsAllProviderUpdating(false) } - const [activeTab, setActiveTab] = createSignal(ActiveTab.all) + const [activeTab, setActiveTab] = createSignal(ActiveTab.proxies) const tabs = () => [ { - type: ActiveTab.all, - name: t('all'), - count: proxyProviders().length + proxies().length, + type: ActiveTab.proxies, + name: t('proxies'), + count: proxies().length, }, { type: ActiveTab.proxyProviders, name: t('proxyProviders'), count: proxyProviders().length, }, - { - type: ActiveTab.proxies, - name: t('proxies'), - count: proxies().length, - }, ] return (
-
-
- - {(tab) => ( - - )} - -
+ 0}> +
+
+ + {(tab) => ( + + )} + +
- -
+ + + +
+
- + { const sortedProxyNames = sortProxiesByOrderingType( @@ -215,15 +208,7 @@ export default () => { /> - -
- - - + { const sortedProxyNames = sortProxiesByOrderingType(