Skip to content

Commit c1d38b4

Browse files
committed
Prettier + lint
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
1 parent 05395a1 commit c1d38b4

4 files changed

Lines changed: 32 additions & 15 deletions

File tree

client/src/api/search.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import { api } from "./client";
22

33
export type SearchEntityType =
4-
"servers" | "gateways" | "tools" | "resources" | "prompts" | "agents" | "teams" | "users";
4+
| "servers"
5+
| "gateways"
6+
| "tools"
7+
| "resources"
8+
| "prompts"
9+
| "agents"
10+
| "teams"
11+
| "users";
512

613
export interface GlobalSearchItem {
714
id?: string;

client/src/components/gateways/VirtualServerDetailsPanel.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ interface Prompt {
7070
}
7171

7272
type ComponentWithType =
73-
(Tool & { type: "tools" }) | (Resource & { type: "resources" }) | (Prompt & { type: "prompts" });
73+
| (Tool & { type: "tools" })
74+
| (Resource & { type: "resources" })
75+
| (Prompt & { type: "prompts" });
7476

7577
interface MCPServersResponse {
7678
gateways?: MCPServer[];

client/src/components/servers/MCPServerDetailsPanel.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ interface Prompt {
6868
}
6969

7070
type ComponentWithType =
71-
(Tool & { type: "tools" }) | (Resource & { type: "resources" }) | (Prompt & { type: "prompts" });
71+
| (Tool & { type: "tools" })
72+
| (Resource & { type: "resources" })
73+
| (Prompt & { type: "prompts" });
7274

7375
function DetailRow({
7476
label,

client/src/pages/CreateServer.tsx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -402,26 +402,32 @@ const MCPServerAccordionItem = memo(function MCPServerAccordionItem({
402402
const StatusIcon = status.Icon;
403403
const tools = useMemo(
404404
() =>
405-
getResponseItems(toolsData, "tools").map((tool): SelectableComponent => ({
406-
...tool,
407-
kind: "tools",
408-
})),
405+
getResponseItems(toolsData, "tools").map(
406+
(tool): SelectableComponent => ({
407+
...tool,
408+
kind: "tools",
409+
}),
410+
),
409411
[toolsData],
410412
);
411413
const resources = useMemo(
412414
() =>
413-
getResponseItems(resourcesData, "resources").map((resource): SelectableComponent => ({
414-
...resource,
415-
kind: "resources",
416-
})),
415+
getResponseItems(resourcesData, "resources").map(
416+
(resource): SelectableComponent => ({
417+
...resource,
418+
kind: "resources",
419+
}),
420+
),
417421
[resourcesData],
418422
);
419423
const prompts = useMemo(
420424
() =>
421-
getResponseItems(promptsData, "prompts").map((prompt): SelectableComponent => ({
422-
...prompt,
423-
kind: "prompts",
424-
})),
425+
getResponseItems(promptsData, "prompts").map(
426+
(prompt): SelectableComponent => ({
427+
...prompt,
428+
kind: "prompts",
429+
}),
430+
),
425431
[promptsData],
426432
);
427433
const isLoadingComponents = toolsLoading || resourcesLoading || promptsLoading;

0 commit comments

Comments
 (0)