File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
store/reducers/capabilities Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,7 @@ function DataWrapper({children}: {children: React.ReactNode}) {
178
178
return (
179
179
< GetUser >
180
180
< GetNodesList />
181
- < GetCapabilities />
182
- { children }
181
+ < GetCapabilities > { children } </ GetCapabilities >
183
182
</ GetUser >
184
183
) ;
185
184
}
@@ -199,9 +198,14 @@ function GetNodesList() {
199
198
return null ;
200
199
}
201
200
202
- function GetCapabilities ( ) {
203
- useCapabilitiesQuery ( ) ;
204
- return null ;
201
+ function GetCapabilities ( { children} : { children : React . ReactNode } ) {
202
+ const { isLoading} = useCapabilitiesQuery ( ) ;
203
+
204
+ return (
205
+ < LoaderWrapper loading = { isLoading } size = "l" >
206
+ { children }
207
+ </ LoaderWrapper >
208
+ ) ;
205
209
}
206
210
207
211
interface ContentWrapperProps {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function useDatabaseFromQuery() {
15
15
export function useCapabilitiesQuery ( ) {
16
16
const database = useDatabaseFromQuery ( ) ;
17
17
18
- capabilitiesApi . useGetClusterCapabilitiesQuery ( { database} ) ;
18
+ return capabilitiesApi . useGetClusterCapabilitiesQuery ( { database} ) ;
19
19
}
20
20
21
21
export function useCapabilitiesLoaded ( ) {
You can’t perform that action at this time.
0 commit comments