diff --git a/web-app/src/StyleHandler.tsx b/web-app/src/StyleHandler.tsx
index c6ad1274ab3..32ea9dd2343 100644
--- a/web-app/src/StyleHandler.tsx
+++ b/web-app/src/StyleHandler.tsx
@@ -48,18 +48,11 @@ const StyleHandler = ({ children }: IStyleHandler) => {
let thm = theme;
let globalBody: any = {};
- let rowColor: any = { color: "#393939" };
- let detailsListPanel: any = { backgroundColor: "#fff" };
if (colorVariants) {
thm = generateOverrideTheme(colorVariants);
globalBody = { backgroundColor: colorVariants.backgroundColor };
- rowColor = { color: colorVariants.fontColor };
- detailsListPanel = {
- backgroundColor: colorVariants.backgroundColor,
- color: colorVariants.fontColor,
- };
}
// Kept for Compatibility purposes. Once mds migration is complete then this will be removed
@@ -69,12 +62,6 @@ const StyleHandler = ({ children }: IStyleHandler) => {
body: {
...globalBody,
},
- ".rowLine": {
- ...rowColor,
- },
- ".detailsListPanel": {
- ...detailsListPanel,
- },
},
})(() => null);
diff --git a/web-app/src/screens/Console/Common/FormComponents/CheckboxWrapper/CheckboxWrapper.tsx b/web-app/src/screens/Console/Common/FormComponents/CheckboxWrapper/CheckboxWrapper.tsx
deleted file mode 100644
index 76932787d28..00000000000
--- a/web-app/src/screens/Console/Common/FormComponents/CheckboxWrapper/CheckboxWrapper.tsx
+++ /dev/null
@@ -1,131 +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 from "react";
-import { Checkbox, Grid, InputLabel, Tooltip } from "@mui/material";
-import { Theme } from "@mui/material/styles";
-import createStyles from "@mui/styles/createStyles";
-import withStyles from "@mui/styles/withStyles";
-import {
- checkboxIcons,
- fieldBasic,
- tooltipHelper,
-} from "../common/styleLibrary";
-import { HelpIcon } from "mds";
-
-interface CheckBoxProps {
- label: string;
- classes: any;
- onChange: (e: React.ChangeEvent) => void;
- value: string | boolean;
- id: string;
- name: string;
- disabled?: boolean;
- tooltip?: string;
- overrideLabelClasses?: string;
- overrideCheckboxStyles?: React.CSSProperties;
- index?: number;
- noTopMargin?: boolean;
- checked: boolean;
- className?: string;
-}
-
-const styles = (theme: Theme) =>
- createStyles({
- ...fieldBasic,
- ...tooltipHelper,
- ...checkboxIcons,
- fieldContainer: {
- ...fieldBasic.fieldContainer,
- display: "flex",
- justifyContent: "flex-start",
- alignItems: "center",
- margin: "15px 0",
- marginBottom: 0,
- flexBasis: "initial",
- flexWrap: "nowrap",
- },
- noTopMargin: {
- marginTop: 0,
- },
- });
-
-const CheckboxWrapper = ({
- label,
- onChange,
- value,
- id,
- name,
- checked = false,
- disabled = false,
- noTopMargin = false,
- tooltip = "",
- overrideLabelClasses = "",
- overrideCheckboxStyles,
- classes,
- className,
-}: CheckBoxProps) => {
- return (
-
-
-
-
- ) : (
-
-
- {stepsList()}
-
-
- )}
-
-
-
-
-
- );
-};
-
-export default withStyles(styles)(GenericWizard);
diff --git a/web-app/src/screens/Console/Common/GenericWizard/WizardPage.tsx b/web-app/src/screens/Console/Common/GenericWizard/WizardPage.tsx
deleted file mode 100644
index b530936df2a..00000000000
--- a/web-app/src/screens/Console/Common/GenericWizard/WizardPage.tsx
+++ /dev/null
@@ -1,130 +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 from "react";
-import { Theme } from "@mui/material/styles";
-import { Button } from "mds";
-import createStyles from "@mui/styles/createStyles";
-import withStyles from "@mui/styles/withStyles";
-import { IWizardButton, IWizardPage } from "./types";
-import { LinearProgress } from "@mui/material";
-
-const styles = (theme: Theme) =>
- createStyles({
- wizardStepContainer: {
- display: "flex",
- flexDirection: "column",
- flex: 1,
- },
- wizardComponent: {
- overflowY: "auto",
- marginBottom: 10,
- height: "calc(100vh - 100px - 80px)",
- minHeight: 400,
- flex: 1,
- width: "100%",
- },
- wizardModal: {
- overflowY: "auto",
- marginBottom: 10,
- height: "calc(100vh - 515px)",
- },
- buttonsContainer: {
- display: "flex",
- flexDirection: "row",
- justifyContent: "flex-start" as const,
- padding: "10px 0",
- borderTop: "#EAEAEA 1px solid",
- "& button": {
- marginLeft: 10,
- },
- "&.forModal": {
- paddingBottom: 0,
- },
- },
- buttonInnerContainer: {
- width: "100%",
- display: "flex",
- justifyContent: "flex-end",
- marginRight: 15,
- },
- });
-
-const WizardPage = ({
- classes,
- page,
- pageChange,
- loadingStep,
- forModal,
-}: IWizardPage) => {
- const buttonAction = (btn: IWizardButton) => {
- switch (btn.type) {
- case "next":
- pageChange("++");
- break;
- case "back":
- pageChange("--");
- break;
- case "to":
- pageChange(btn.toPage || 0);
- break;
- case "custom":
- default:
- }
-
- if (btn.action) {
- btn.action(pageChange);
- }
- };
-
- return (
-