File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/store/reducers/capabilities Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function useCapabilitiesLoaded() {
2626 return Boolean ( data || error ) ;
2727}
2828
29- const useGetFeatureVersion = ( feature : Capability ) => {
29+ export const useGetFeatureVersion = ( feature : Capability ) => {
3030 const database = useDatabaseFromQuery ( ) ;
3131
3232 return useTypedSelector ( ( state ) => selectCapabilityVersion ( state , feature , database ) || 0 ) ;
@@ -62,6 +62,10 @@ export const useViewerNodesHandlerHasGroupingBySystemState = () => {
6262 return useGetFeatureVersion ( '/viewer/nodes' ) > 11 ;
6363} ;
6464
65+ export const useViewerNodesHandlerHasNetworkStats = ( ) => {
66+ return useGetFeatureVersion ( '/viewer/nodes' ) > 12 ;
67+ } ;
68+
6569export const useFeatureFlagsAvailable = ( ) => {
6670 return useGetFeatureVersion ( '/viewer/feature_flags' ) > 1 ;
6771} ;
You can’t perform that action at this time.
0 commit comments