diff --git a/web/src/components/proxy-ping.tsx b/web/src/components/proxy-ping.tsx index 3e1d874..5d2cfab 100644 --- a/web/src/components/proxy-ping.tsx +++ b/web/src/components/proxy-ping.tsx @@ -30,11 +30,11 @@ export default function ProxyPing({ accountId }: { accountId: string }) { > {isLoading && ( -
+
)} {!isLoading && error && Connection error} {!isLoading && data && ( -
+
{(data.ping * 1000).toFixed(0)} ms
)} diff --git a/web/src/components/proxys.tsx b/web/src/components/proxys.tsx index 4e69249..a02e953 100644 --- a/web/src/components/proxys.tsx +++ b/web/src/components/proxys.tsx @@ -25,6 +25,7 @@ import useSWRMutation from "swr/mutation"; import { request } from "@/lib/api"; import { toast } from "@/hooks/use-toast"; import ProxyPing from "@/components/proxy-ping"; +import { Label } from "./ui/label"; export interface ProxysProps { enableSelect?: boolean; @@ -231,34 +232,46 @@ export default function Proxys({
{/* Radio buttons for proxy type */}
- +
-
- {/* Other input fields */}
- +
-

+

+
-
-
-

- Authentication (optional) -

+
-
-