@@ -9,16 +9,15 @@ import {
9
9
Dialog ,
10
10
DialogContent ,
11
11
DialogTitle ,
12
- Divider ,
13
12
IconButton ,
14
13
Stack ,
15
14
TextField ,
16
- Typography ,
15
+ Typography
17
16
} from '@mui/material' ;
18
17
import { useState } from 'react' ;
19
18
20
19
import { MCP_POLICY_NAME } from '../../Constants' ;
21
- import { useCatalogAll , useCatalogOperations } from '../../queries/useCatalog' ;
20
+ import { useCatalogOperations } from '../../queries/useCatalog' ;
22
21
import { useSecrets } from '../../queries/useSecrets' ;
23
22
import { CatalogItemRichened } from '../../types/catalog' ;
24
23
import Bottom from './Bottom' ;
@@ -29,9 +28,10 @@ import Top from './Top';
29
28
type TileProps = {
30
29
item : CatalogItemRichened ;
31
30
client : v1 . DockerDesktopClient ;
31
+ registryLoading : boolean ;
32
32
} ;
33
33
34
- const Tile = ( { item, client } : TileProps ) => {
34
+ const Tile = ( { item, client, registryLoading } : TileProps ) => {
35
35
const [ showSecretDialog , setShowSecretDialog ] = useState ( false ) ;
36
36
const [ assignedSecrets ] = useState < { name : string ; assigned : boolean } [ ] > ( [ ] ) ;
37
37
const [ changedSecrets , setChangedSecrets ] = useState < {
@@ -43,7 +43,6 @@ const Tile = ({ item, client }: TileProps) => {
43
43
useSecrets ( client ) ;
44
44
const { registerCatalogItem, unregisterCatalogItem } =
45
45
useCatalogOperations ( client ) ;
46
- const { registryLoading } = useCatalogAll ( client ) ;
47
46
48
47
if ( registryLoading || secretsLoading ) {
49
48
return (
@@ -140,12 +139,12 @@ const Tile = ({ item, client }: TileProps) => {
140
139
</ Stack >
141
140
</ DialogContent >
142
141
</ Dialog >
143
- < ConfigurationModal
142
+ { showConfigModal && < ConfigurationModal
144
143
open = { showConfigModal }
145
144
onClose = { ( ) => setShowConfigModal ( false ) }
146
145
catalogItem = { item }
147
146
client = { client }
148
- />
147
+ /> }
149
148
< Card >
150
149
< CardActionArea
151
150
sx = { { padding : 1.5 } }
0 commit comments