-
- }
- />
-
-
- );
-};
-
-export default DistributedOnly;
diff --git a/web-app/src/screens/Console/Common/FormComponents/AutocompleteWrapper/AutocompleteWrapper.tsx b/web-app/src/screens/Console/Common/FormComponents/AutocompleteWrapper/AutocompleteWrapper.tsx
deleted file mode 100644
index 5b191efc9c3..00000000000
--- a/web-app/src/screens/Console/Common/FormComponents/AutocompleteWrapper/AutocompleteWrapper.tsx
+++ /dev/null
@@ -1,133 +0,0 @@
-// This file is part of MinIO Operator
-// Copyright (c) 2021 MinIO, Inc.
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see .
-import React, { useState } from "react";
-import Grid from "@mui/material/Grid";
-import {
- FormControl,
- InputLabel,
- OutlinedInputProps,
- TextField,
- TextFieldProps,
- Tooltip,
-} from "@mui/material";
-import makeStyles from "@mui/styles/makeStyles";
-import Autocomplete from "@mui/material/Autocomplete";
-import { Theme } from "@mui/material/styles";
-import createStyles from "@mui/styles/createStyles";
-import withStyles from "@mui/styles/withStyles";
-import {
- fieldBasic,
- inputFieldStyles,
- tooltipHelper,
-} from "../common/styleLibrary";
-import { HelpIcon } from "mds";
-
-interface selectorTypes {
- label: string;
- value: string;
-}
-
-interface SelectProps {
- options: selectorTypes[];
- value: string;
- label: string;
- id: string;
- name: string;
- tooltip?: string;
- onChange: (returnedValue: string) => void;
- disabled?: boolean;
- classes: any;
-}
-
-const styles = (theme: Theme) =>
- createStyles({
- ...fieldBasic,
- ...tooltipHelper,
- });
-
-const inputStyles = makeStyles((theme: Theme) =>
- createStyles({
- ...inputFieldStyles,
- }),
-);
-
-function InputField(props: TextFieldProps) {
- const classes = inputStyles();
-
- return (
- }
- {...props}
- />
- );
-}
-
-const AutocompleteWrapper = ({
- classes,
- id,
- name,
- onChange,
- options,
- label,
- tooltip = "",
- value,
- disabled = false,
-}: SelectProps) => {
- const [internalValue, setInternalValue] = useState(options[0]);
-
- const executeOnSelect = (_: any, selectedValue: any) => {
- if (selectedValue) {
- onChange(selectedValue.value);
- setInternalValue(selectedValue);
- }
- };
-
- return (
-
-
- {label !== "" && (
-
- {label}
- {tooltip !== "" && (
-