Skip to content

Commit b6fc891

Browse files
Fix formatting issues in ProxyContext.tsx
Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parent 400250a commit b6fc891

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

site/src/contexts/ProxyContext.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ import {
1414
useMemo,
1515
useState,
1616
} from "react";
17-
import { useQuery } from "react-query";
17+
1818
import { type ProxyLatencyReport, useProxyLatency } from "./useProxyLatency";
1919

2020
export type Proxies = readonly Region[] | readonly WorkspaceProxy[];
2121
export type ProxyLatencies = Record<string, ProxyLatencyReport>;
2222
export interface ProxyContextValue {
2323
// proxy is **always** the workspace proxy that should be used.
2424
// The 'proxy.selectedProxy' field is the proxy being used and comes from either:
25-
// 1. The user manually selected this proxy. (saved to local storage)
2625
// 2. The default proxy auto selected because:
2726
// a. The user has not selected a proxy.
2827
// b. The user's selected proxy is not in the list of proxies.
@@ -74,8 +73,7 @@ export interface ProxyContextValue {
7473
interface PreferredProxy {
7574
// proxy is the proxy being used. It is provided for
7675
// getting the fields such as "display_name" and "id"
77-
// Do not use the fields 'path_app_url' or 'wildcard_hostname' from this
78-
// object. Use the preferred fields.
76+
// Do not use the fields 'path_app_url' or 'wildcard_hostname' from this // object. Use the preferred fields.
7977
proxy: Region | undefined;
8078
// PreferredPathAppURL is the URL of the proxy or it is the empty string
8179
// to indicate using relative paths. To add a path to this:

0 commit comments

Comments
 (0)