diff --git a/src/app/Caches/Create/FeaturesSelector.tsx b/src/app/Caches/Create/FeaturesSelector.tsx
index e72f7e500..46373604c 100644
--- a/src/app/Caches/Create/FeaturesSelector.tsx
+++ b/src/app/Caches/Create/FeaturesSelector.tsx
@@ -1,6 +1,5 @@
import React, { useEffect, useState } from 'react';
-import { Alert, Form, FormAlert, FormGroup, FormSection } from '@patternfly/react-core';
-import { Select, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
+import { Alert, Form, FormAlert, FormGroup, FormSection, SelectOptionProps } from '@patternfly/react-core';
import { CacheFeature, CacheMode } from '@services/infinispanRefData';
import { useTranslation } from 'react-i18next';
import { ConsoleServices } from '@services/ConsoleServices';
@@ -15,6 +14,7 @@ import { useConnectedUser } from '@app/services/userManagementHook';
import { validFeatures } from '@app/utils/featuresValidation';
import { useFetchProtobufTypes } from '@app/services/protobufHook';
import { ConsoleACL } from '@services/securityService';
+import { SelectMultiWithChips } from '@app/Common/SelectMultiWithChips';
const FeaturesSelector = () => {
const { t } = useTranslation();
@@ -26,7 +26,6 @@ const FeaturesSelector = () => {
const [loadingBackups, setLoadingBackups] = useState(true);
const [isBackups, setIsBackups] = useState(false);
- const [isOpenCacheFeature, setIsOpenCacheFeature] = useState(false);
useEffect(() => {
if (loadingBackups) {
@@ -42,13 +41,12 @@ const FeaturesSelector = () => {
}
}, [loadingBackups]);
- const onSelectFeature = (event, selection) => {
+ const onSelectFeature = (selection) => {
if (configuration.feature.cacheFeatureSelected.includes(selection)) {
removeFeature(selection);
} else {
addFeature(selection);
}
- setIsOpenCacheFeature(false);
};
const onClearFeatureSelection = () => {
@@ -61,11 +59,6 @@ const FeaturesSelector = () => {
}
};
});
- setIsOpenCacheFeature(false);
- };
-
- const cacheFeatureOptions = () => {
- return Object.keys(CacheFeature).map((key) =>