Skip to content

Commit c370bde

Browse files
committed
Remove unused check on Client loading
Signed-off-by: Trung Nguyen <[email protected]>
1 parent fd57467 commit c370bde

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

src/extension/ui/src/components/CatalogGrid.tsx

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import SearchIcon from '@mui/icons-material/Search';
44
import SwapVert from '@mui/icons-material/SwapVert';
55
import {
66
Alert,
7-
Badge,
87
Box,
98
Button,
109
CircularProgress,
@@ -24,7 +23,6 @@ import {
2423
import React, { Suspense, useMemo, useState } from 'react';
2524

2625
import { CATALOG_LAYOUT_SX } from '../Constants';
27-
import { MCPClientState } from '../MCPClients';
2826
import { CatalogItemRichened } from '../types/catalog';
2927
import YourClients from './tabs/YourClients';
3028

@@ -39,12 +37,7 @@ interface CatalogGridProps {
3937

4038
export const CatalogGrid: React.FC<CatalogGridProps> = ({ appProps }) => {
4139
// Extract all the values we need from appProps
42-
const {
43-
catalogItems,
44-
registryItems,
45-
mcpClientStates,
46-
isLoading: mcpLoading,
47-
} = appProps;
40+
const { catalogItems, registryItems } = appProps;
4841

4942
const [search, setSearch] = useState<string>('');
5043
const [tab, setTab] = useState<number>(0);
@@ -83,14 +76,6 @@ export const CatalogGrid: React.FC<CatalogGridProps> = ({ appProps }) => {
8376
);
8477
}
8578

86-
// Check if there are any configured clients
87-
const noConfiguredClients =
88-
!mcpLoading && mcpClientStates
89-
? !Object.values(mcpClientStates as Record<string, MCPClientState>).some(
90-
(state) => state.exists && state.configured
91-
)
92-
: false;
93-
9479
return (
9580
<Stack spacing={2} justifyContent="center" alignItems="center">
9681
<Stack
@@ -140,18 +125,7 @@ export const CatalogGrid: React.FC<CatalogGridProps> = ({ appProps }) => {
140125
sx={CATALOG_LAYOUT_SX}
141126
>
142127
<Tab label="Tools" />
143-
<Tab
144-
label={
145-
<Badge
146-
variant="dot"
147-
invisible={!noConfiguredClients}
148-
badgeContent={'TEST'}
149-
color="error"
150-
>
151-
Clients
152-
</Badge>
153-
}
154-
/>
128+
<Tab label="Clients" />
155129
</Tabs>
156130
{tab === 0 && (
157131
<Stack

0 commit comments

Comments
 (0)