diff --git a/portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx b/portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx
index 78478192b..3c71e32d2 100644
--- a/portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx
+++ b/portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx
@@ -116,7 +116,7 @@ const styles = (theme: Theme) =>
},
"& .MuiInputBase-root": {
"& .MuiInputAdornment-root": {
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
color: theme.palette.grey["400"],
height: 14,
},
diff --git a/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ListObjects.tsx b/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ListObjects.tsx
index 505e0f585..e8abb00ca 100644
--- a/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ListObjects.tsx
+++ b/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ListObjects.tsx
@@ -63,7 +63,7 @@ import {
import { BucketInfo, BucketVersioning } from "../../../types";
import { ErrorResponseHandler } from "../../../../../../common/types";
import RewindEnable from "./RewindEnable";
-import DeleteIcon from "@mui/icons-material/Delete";
+
import DeleteMultipleObjects from "./DeleteMultipleObjects";
import PreviewFileModal from "../Preview/PreviewFileModal";
import { baseUrl } from "../../../../../../history";
@@ -76,7 +76,13 @@ import FolderIcon from "../../../../../../icons/FolderIcon";
import RefreshIcon from "../../../../../../icons/RefreshIcon";
import SearchIcon from "../../../../../../icons/SearchIcon";
import UploadIcon from "../../../../../../icons/UploadIcon";
+import ShareFile from "../ObjectDetails/ShareFile";
+import { setBucketDetailsLoad, setBucketInfo } from "../../../actions";
+import { AppState } from "../../../../../../store";
+import PageLayout from "../../../../Common/Layout/PageLayout";
+import BoxIconButton from "../../../../Common/BoxIconButton/BoxIconButton";
import {
+ DeleteIcon,
FileBookIcon,
FileCodeIcon,
FileConfigIcon,
@@ -93,12 +99,7 @@ import {
FileXlsIcon,
FileZipIcon,
} from "../../../../../../icons";
-import ShareFile from "../ObjectDetails/ShareFile";
import { IAM_SCOPES } from "../../../../../../common/SecureComponent/permissions";
-import { setBucketDetailsLoad, setBucketInfo } from "../../../actions";
-import { AppState } from "../../../../../../store";
-import PageLayout from "../../../../Common/Layout/PageLayout";
-import BoxIconButton from "../../../../Common/BoxIconButton/BoxIconButton";
import SecureComponent, {
hasPermission,
} from "../../../../../../common/SecureComponent/SecureComponent";
@@ -142,7 +143,7 @@ const styles = (theme: Theme) =>
fileName: {
display: "flex",
alignItems: "center",
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
marginRight: 4,
diff --git a/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ObjectDetails/ObjectDetails.tsx b/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ObjectDetails/ObjectDetails.tsx
index 92104210f..e0e44956d 100644
--- a/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ObjectDetails/ObjectDetails.tsx
+++ b/portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ObjectDetails/ObjectDetails.tsx
@@ -122,6 +122,9 @@ const styles = (theme: Theme) =>
},
propertiesIcon: {
marginLeft: 5,
+ "& .min-icon": {
+ height: 12,
+ },
},
actionsIconContainer: {
marginLeft: 12,
@@ -129,7 +132,7 @@ const styles = (theme: Theme) =>
actionsIcon: {
height: 16,
width: 16,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
height: 16,
},
},
@@ -149,7 +152,7 @@ const styles = (theme: Theme) =>
"&.MuiChip-sizeSmall": {
height: 18,
},
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
height: 10,
width: 10,
},
@@ -179,7 +182,7 @@ const styles = (theme: Theme) =>
},
capitalizeFirst: {
textTransform: "capitalize",
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
},
diff --git a/portal-ui/src/screens/Console/Common/BoxButton/BoxButton.tsx b/portal-ui/src/screens/Console/Common/BoxButton/BoxButton.tsx
index 84bfcf768..afeb5794c 100644
--- a/portal-ui/src/screens/Console/Common/BoxButton/BoxButton.tsx
+++ b/portal-ui/src/screens/Console/Common/BoxButton/BoxButton.tsx
@@ -31,8 +31,8 @@ const styles = (theme: Theme) =>
color: "#696969",
borderStyle: "solid",
borderRadius: 3,
- "& .MuiSvgIcon-root": {
- fontSize: 20,
+ "& .min-icon": {
+ width: 20,
},
"& .MuiTouchRipple-root span": {
backgroundColor: theme.palette.primary.main,
diff --git a/portal-ui/src/screens/Console/Common/BoxIconButton/BoxIconButton.tsx b/portal-ui/src/screens/Console/Common/BoxIconButton/BoxIconButton.tsx
index 47f7aa0d3..0f69af4b9 100644
--- a/portal-ui/src/screens/Console/Common/BoxIconButton/BoxIconButton.tsx
+++ b/portal-ui/src/screens/Console/Common/BoxIconButton/BoxIconButton.tsx
@@ -31,8 +31,9 @@ const styles = (theme: Theme) =>
color: "#696969",
borderStyle: "solid",
borderRadius: 3,
- "& .MuiSvgIcon-root": {
- fontSize: 20,
+ "& .min-icon": {
+ // height: 20,
+ width: 20,
},
"& .MuiTouchRipple-root span": {
backgroundColor: theme.palette.primary.main,
diff --git a/portal-ui/src/screens/Console/Common/CredentialsPrompt/CredentialItem.tsx b/portal-ui/src/screens/Console/Common/CredentialsPrompt/CredentialItem.tsx
index 4d44a1fa3..c5a43c45d 100644
--- a/portal-ui/src/screens/Console/Common/CredentialsPrompt/CredentialItem.tsx
+++ b/portal-ui/src/screens/Console/Common/CredentialsPrompt/CredentialItem.tsx
@@ -44,8 +44,9 @@ const styles = (theme: Theme) =>
},
},
},
- "& .MuiButtonBase-root .MuiSvgIcon-root": {
- fontSize: ".8rem",
+ "& .MuiButtonBase-root .min-icon": {
+ width: ".8rem",
+ height: ".8rem",
},
},
inputLabel: {
diff --git a/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts b/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts
index 7fc6e67a7..dafccbe0c 100644
--- a/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts
+++ b/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts
@@ -277,7 +277,7 @@ export const searchField = {
"&:hover": {
borderColor: "#000",
},
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
},
@@ -929,7 +929,7 @@ export const commonDashboardInfocard = {
"& strong": {
marginRight: 4,
},
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 20,
height: 20,
},
@@ -958,7 +958,7 @@ export const commonDashboardInfocard = {
height: 10,
bottom: 2,
marginRight: 10,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 5,
height: 5,
},
@@ -968,7 +968,7 @@ export const commonDashboardInfocard = {
display: "flex" as const,
alignItems: "center" as const,
marginTop: -3,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
marginTop: 5,
width: 10,
height: 10,
@@ -996,7 +996,7 @@ export const commonDashboardInfocard = {
alignItems: "center" as const,
lineHeight: 1,
fontWeight: "bold" as const,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 10,
height: 10,
marginTop: -5,
@@ -1091,6 +1091,10 @@ export const tableStyles: any = {
"&:hover": {
backgroundColor: "#E2E2E2",
},
+ "& .min-icon": {
+ width: 13,
+ margin: 3,
+ },
},
},
};
@@ -1134,7 +1138,7 @@ export const deleteDialogStyles = {
left: 30,
position: "relative",
},
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
height: 16,
width: 16,
},
diff --git a/portal-ui/src/screens/Console/Common/IconsScreen.tsx b/portal-ui/src/screens/Console/Common/IconsScreen.tsx
new file mode 100644
index 000000000..18a51fa0f
--- /dev/null
+++ b/portal-ui/src/screens/Console/Common/IconsScreen.tsx
@@ -0,0 +1,724 @@
+// This file is part of MinIO Console Server
+// 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 { containerForHeader } from "../Common/FormComponents/common/styleLibrary";
+import { Theme } from "@mui/material/styles";
+import createStyles from "@mui/styles/createStyles";
+import withStyles from "@mui/styles/withStyles";
+import { Grid } from "@mui/material";
+import {
+ AccountIcon,
+ AddFolderIcon,
+ AddIcon,
+ AllBucketsIcon,
+ ArrowRightIcon,
+ BackSettingsIcon,
+ BucketsIcon,
+ CalendarIcon,
+ CircleIcon,
+ ClustersIcon,
+ ComputerLineIcon,
+ ConfigurationsListIcon,
+ ConsoleIcon,
+ ConsoleLogo,
+ CopyIcon,
+ CreateIcon,
+ DashboardIcon,
+ DeleteIcon,
+ DiagnosticIcon,
+ DiagnosticsIcon,
+ DocumentationIcon,
+ DownloadIcon,
+ DownloadStatIcon,
+ DrivesIcon,
+ EditIcon,
+ EgressIcon,
+ FileBookIcon,
+ FileCloudIcon,
+ FileCodeIcon,
+ FileConfigIcon,
+ FileDbIcon,
+ FileFontIcon,
+ FileImageIcon,
+ FileLinkIcon,
+ FileLockIcon,
+ FileMissingIcon,
+ FileMusicIcon,
+ FilePdfIcon,
+ FilePptIcon,
+ FileTxtIcon,
+ FileVideoIcon,
+ FileWorldIcon,
+ FileXlsIcon,
+ FileZipIcon,
+ FolderIcon,
+ GroupsIcon,
+ HealIcon,
+ HelpIcon,
+ HistoryIcon,
+ IAMPoliciesIcon,
+ JSONIcon,
+ LambdaIcon,
+ LambdaNotificationsIcon,
+ LicenseIcon,
+ LockIcon,
+ LogoutIcon,
+ LogsIcon,
+ MirroringIcon,
+ NextArrowIcon,
+ ObjectBrowser1Icon,
+ ObjectBrowserFolderIcon,
+ ObjectBrowserIcon,
+ OpenListIcon,
+ OperatorLogo,
+ PermissionIcon,
+ PreviewIcon,
+ PrometheusIcon,
+ RecoverIcon,
+ RedoIcon,
+ RefreshIcon,
+ RemoveIcon,
+ ReportedUsageIcon,
+ SearchIcon,
+ SelectMultipleIcon,
+ ServersIcon,
+ ServiceAccountIcon,
+ ServiceAccountsIcon,
+ SettingsIcon,
+ ShareIcon,
+ StorageIcon,
+ SyncIcon,
+ TenantsIcon,
+ TenantsOutlineIcon,
+ TiersIcon,
+ ToolsIcon,
+ TotalObjectsIcon,
+ TraceIcon,
+ TrashIcon,
+ UploadFile,
+ UploadIcon,
+ UploadStatIcon,
+ UptimeIcon,
+ UsersIcon,
+ VersionIcon,
+ WarpIcon,
+ WatchIcon,
+} from "../../../icons";
+import WarnIcon from "../../../icons/WarnIcon";
+
+interface IIconsScreenSimple {
+ classes: any;
+}
+
+const styles = (theme: Theme) =>
+ createStyles({
+ ...containerForHeader(theme.spacing(4)),
+ root: {
+ fontSize: 12,
+ },
+ });
+
+const IconsScreen = ({ classes }: IIconsScreenSimple) => {
+ return (
+
+
+
+
+
+ StorageIcon
+
+
+
+
+
+ RefreshIcon
+
+
+
+
+
+ ShareIcon
+
+
+
+
+
+ FolderIcon
+
+
+
+
+
+ EditIcon
+
+
+
+
+
+ SearchIcon
+
+
+
+
+
+ ObjectBrowserFolderIcon
+
+
+
+
+
+ RedoIcon
+
+
+
+
+
+ DashboardIcon
+
+
+
+
+
+ ClustersIcon
+
+
+
+
+
+ MirroringIcon
+
+
+
+
+
+ ServiceAccountIcon
+
+
+
+
+
+ ConfigurationsListIcon
+
+
+
+
+
+ WatchIcon
+
+
+
+
+
+ HealIcon
+
+
+
+
+
+ OperatorLogo
+
+
+
+
+
+ DeleteIcon
+
+
+
+
+
+ ReportedUsageIcon
+
+
+
+
+
+ PermissionIcon
+
+
+
+
+
+ AccountIcon
+
+
+
+
+
+ DiagnosticIcon
+
+
+
+
+
+ TenantsOutlineIcon
+
+
+
+
+
+ HelpIcon
+
+
+
+
+
+ DiagnosticsIcon
+
+
+
+
+
+ ObjectBrowser1Icon
+
+
+
+
+
+ WarpIcon
+
+
+
+
+
+ CopyIcon
+
+
+
+
+
+ ConsoleLogo
+
+
+
+
+
+ TraceIcon
+
+
+
+
+
+ AddIcon
+
+
+
+
+
+ LambdaNotificationsIcon
+
+
+
+
+
+ BackSettingsIcon
+
+
+
+
+
+ LicenseIcon
+
+
+
+
+
+ RemoveIcon
+
+
+
+
+
+ AddFolderIcon
+
+
+
+
+
+ IAMPoliciesIcon
+
+
+
+
+
+ UsersIcon
+
+
+
+
+
+ EgressIcon
+
+
+
+
+
+ DocumentationIcon
+
+
+
+
+
+ TrashIcon
+
+
+
+
+
+ DownloadIcon
+
+
+
+
+
+ AllBucketsIcon
+
+
+
+
+
+ SelectMultipleIcon
+
+
+
+
+
+ GroupsIcon
+
+
+
+
+
+ TenantsIcon
+
+
+
+
+
+ UploadFile
+
+
+
+
+
+ CreateIcon
+
+
+
+
+
+ SyncIcon
+
+
+
+
+
+ LogoutIcon
+
+
+
+
+
+ HistoryIcon
+
+
+
+
+
+ BucketsIcon
+
+
+
+
+
+ ObjectBrowserIcon
+
+
+
+
+
+ SettingsIcon
+
+
+
+
+
+ UploadIcon
+
+
+
+
+
+ ServiceAccountsIcon
+
+
+
+
+
+ LogsIcon
+
+
+
+
+
+ ConsoleIcon
+
+
+
+
+
+ ServersIcon
+
+
+
+
+
+ DrivesIcon
+
+
+
+
+
+ TotalObjectsIcon
+
+
+
+
+
+ CircleIcon
+
+
+
+
+
+ PreviewIcon
+
+
+
+
+
+ LockIcon
+
+
+
+
+
+ VersionIcon
+
+
+
+
+
+ FileLockIcon
+
+
+
+
+
+ FileXlsIcon
+
+
+
+
+
+ FileZipIcon
+
+
+
+
+
+ FileCloudIcon
+
+
+
+
+
+ FileMusicIcon
+
+
+
+
+
+ FileConfigIcon
+
+
+
+
+
+ FilePdfIcon
+
+
+
+
+
+ FileFontIcon
+
+
+
+
+
+ FileLinkIcon
+
+
+
+
+
+ FileImageIcon
+
+
+
+
+
+ FileWorldIcon
+
+
+
+
+
+ FileBookIcon
+
+
+
+
+
+ FileMissingIcon
+
+
+
+
+
+ FileCodeIcon
+
+
+
+
+
+ FilePptIcon
+
+
+
+
+
+ FileDbIcon
+
+
+
+
+
+ FileTxtIcon
+
+
+
+
+
+ FileVideoIcon
+
+
+
+
+
+ ArrowRightIcon
+
+
+
+
+
+ CalendarIcon
+
+
+
+
+
+ UptimeIcon
+
+
+
+
+
+ LambdaIcon
+
+
+
+
+
+ TiersIcon
+
+
+
+
+
+ OpenListIcon
+
+
+
+
+
+ ToolsIcon
+
+
+
+
+
+ RecoverIcon
+
+
+
+
+
+ PrometheusIcon
+
+
+
+
+
+ NextArrowIcon
+
+
+
+
+
+ DownloadStatIcon
+
+
+
+
+
+ UploadStatIcon
+
+
+
+
+
+ ComputerLineIcon
+
+
+
+
+
+ JSONIcon
+
+
+
+
+ WarnIcon
+
+
+
+ );
+};
+
+export default withStyles(styles)(IconsScreen);
diff --git a/portal-ui/src/screens/Console/Common/PageHeader/PageHeader.tsx b/portal-ui/src/screens/Console/Common/PageHeader/PageHeader.tsx
index 7fcbd9f9a..978dce979 100644
--- a/portal-ui/src/screens/Console/Common/PageHeader/PageHeader.tsx
+++ b/portal-ui/src/screens/Console/Common/PageHeader/PageHeader.tsx
@@ -39,7 +39,9 @@ const styles = (theme: Theme) =>
logo: {
marginLeft: 34,
fill: theme.palette.primary.main,
- width: 120,
+ "& .min-icon": {
+ width: 120,
+ },
},
});
diff --git a/portal-ui/src/screens/Console/Common/ScreenTitle/ScreenTitle.tsx b/portal-ui/src/screens/Console/Common/ScreenTitle/ScreenTitle.tsx
index 7db3c443b..dd850b8c1 100644
--- a/portal-ui/src/screens/Console/Common/ScreenTitle/ScreenTitle.tsx
+++ b/portal-ui/src/screens/Console/Common/ScreenTitle/ScreenTitle.tsx
@@ -34,9 +34,9 @@ const styles = (theme: Theme) =>
headerBarIcon: {
marginRight: ".7rem",
color: theme.palette.primary.main,
- "& .MuiSvgIcon-root": {
- width: "100%",
- height: "100%",
+ "& .min-icon": {
+ width: 44,
+ height: 44,
},
},
headerBarSubheader: {
diff --git a/portal-ui/src/screens/Console/Common/TableWrapper/TableWrapper.tsx b/portal-ui/src/screens/Console/Common/TableWrapper/TableWrapper.tsx
index aeb3e20e6..1974c889f 100644
--- a/portal-ui/src/screens/Console/Common/TableWrapper/TableWrapper.tsx
+++ b/portal-ui/src/screens/Console/Common/TableWrapper/TableWrapper.tsx
@@ -269,7 +269,7 @@ const styles = () =>
},
".optionsAlignment": {
textAlign: "center",
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
},
diff --git a/portal-ui/src/screens/Console/Common/VerticalTabs/VerticalTabs.tsx b/portal-ui/src/screens/Console/Common/VerticalTabs/VerticalTabs.tsx
index 20b84eaa2..91062ec15 100644
--- a/portal-ui/src/screens/Console/Common/VerticalTabs/VerticalTabs.tsx
+++ b/portal-ui/src/screens/Console/Common/VerticalTabs/VerticalTabs.tsx
@@ -1,10 +1,9 @@
import React from "react";
import { Box, Tab, TabProps } from "@mui/material";
-import { TabPanel, TabContext, TabList } from "@mui/lab";
+import { TabContext, TabList, TabPanel } from "@mui/lab";
import withStyles from "@mui/styles/withStyles";
-import { Theme } from "@mui/material/styles";
+import { Theme, useTheme } from "@mui/material/styles";
import createStyles from "@mui/styles/createStyles";
-import { useTheme } from "@mui/material/styles";
import useMediaQuery from "@mui/material/useMediaQuery";
export type TabItemProps = {
@@ -40,7 +39,7 @@ const styles = (theme: Theme) =>
alignItems: "center",
justifyContent: "flex-start",
borderBottom: "1px solid #EAEAEA",
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
marginRight: ".3rem",
marginBottom: 0,
height: ".8rem",
diff --git a/portal-ui/src/screens/Console/Console.tsx b/portal-ui/src/screens/Console/Console.tsx
index 60e603632..14ffbd8ac 100644
--- a/portal-ui/src/screens/Console/Console.tsx
+++ b/portal-ui/src/screens/Console/Console.tsx
@@ -67,6 +67,7 @@ import ErrorLogs from "./Logs/ErrorLogs/ErrorLogs";
import LogsSearchMain from "./Logs/LogSearch/LogsSearchMain";
import GroupsDetails from "./Groups/GroupsDetails";
import Speedtest from "./Speedtest/Speedtest";
+import IconsScreen from "./Common/IconsScreen";
const drawerWidth = 245;
@@ -512,6 +513,9 @@ const Console = ({
)}
/>
))}
+
+
+
{allowedRoutes.length > 0 ? (
) : null}
diff --git a/portal-ui/src/screens/Console/License/License.tsx b/portal-ui/src/screens/Console/License/License.tsx
index 9eddc5a22..f3e309d07 100644
--- a/portal-ui/src/screens/Console/License/License.tsx
+++ b/portal-ui/src/screens/Console/License/License.tsx
@@ -336,8 +336,9 @@ const styles = (theme: Theme) =>
fontSize: 16,
fontWeight: "bold",
marginBottom: 20,
- "& .MuiSvgIcon-root": {
- fontSize: 44,
+ "& .min-icon": {
+ width: 44,
+ height: 44,
marginRight: 15,
},
},
diff --git a/portal-ui/src/screens/Console/Menu/Menu.tsx b/portal-ui/src/screens/Console/Menu/Menu.tsx
index 45b51337b..a15e413f0 100644
--- a/portal-ui/src/screens/Console/Menu/Menu.tsx
+++ b/portal-ui/src/screens/Console/Menu/Menu.tsx
@@ -109,7 +109,7 @@ const styles = (theme: Theme) =>
backgroundBlendMode: "multiply",
background:
"transparent linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0%, #00000000 100%) 0% 0% no-repeat padding-box",
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
color: "white",
},
"& .MuiTypography-root": {
@@ -117,10 +117,10 @@ const styles = (theme: Theme) =>
fontWeight: "bold",
},
},
- "& .MuiSvgIcon-root": {
- fontSize: 16,
- color: "rgba(255, 255, 255, 0.8)",
- maxWidth: 16,
+ "& .min-icon": {
+ width: 16,
+ height: 16,
+ fill: "rgba(255, 255, 255, 0.8)",
},
"& .MuiListItemIcon-root": {
minWidth: 36,
@@ -263,7 +263,11 @@ const styles = (theme: Theme) =>
},
logoIconClosed: {
color: "white",
- marginLeft: 11,
+ "& .min-icon": {
+ marginLeft: 11,
+ width: 24,
+ fill: "rgba(255, 255, 255, 0.8)",
+ },
},
});
@@ -577,7 +581,9 @@ const Menu = ({
>
{page.icon && (
- {page.icon}
+
+ {page.icon}
+
)}
{page.name &&
}
diff --git a/portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx b/portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx
index 1b9fec4d1..5e55f3370 100644
--- a/portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx
+++ b/portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx
@@ -74,7 +74,7 @@ const styles = (theme: Theme) =>
},
"& .MuiInputBase-root": {
"& .MuiInputAdornment-root": {
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
color: theme.palette.grey["400"],
height: 14,
},
diff --git a/portal-ui/src/screens/Console/Tenants/ListTenants/TenantListItem.tsx b/portal-ui/src/screens/Console/Tenants/ListTenants/TenantListItem.tsx
index 687a59d79..cf3951b35 100644
--- a/portal-ui/src/screens/Console/Tenants/ListTenants/TenantListItem.tsx
+++ b/portal-ui/src/screens/Console/Tenants/ListTenants/TenantListItem.tsx
@@ -34,7 +34,7 @@ const styles = (theme: Theme) =>
createStyles({
redState: {
color: theme.palette.error.main,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
float: "left",
@@ -43,7 +43,7 @@ const styles = (theme: Theme) =>
},
yellowState: {
color: theme.palette.warning.main,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
float: "left",
@@ -52,7 +52,7 @@ const styles = (theme: Theme) =>
},
greenState: {
color: theme.palette.success.main,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
float: "left",
@@ -61,7 +61,7 @@ const styles = (theme: Theme) =>
},
greyState: {
color: "grey",
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
float: "left",
@@ -216,6 +216,7 @@ const TenantListItem = ({ tenant, classes }: ITenantListItem) => {
diff --git a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx
index 49a8c339a..0d3aa9e4a 100644
--- a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx
+++ b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx
@@ -91,28 +91,28 @@ const styles = (theme: Theme) =>
},
redState: {
color: theme.palette.error.main,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
},
},
yellowState: {
color: theme.palette.warning.main,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
},
},
greenState: {
color: theme.palette.success.main,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
},
},
greyState: {
color: "grey",
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
},
@@ -122,7 +122,7 @@ const styles = (theme: Theme) =>
fontSize: 10,
left: 26,
height: 10,
- bottom: 16,
+ top: 4,
},
...containerForHeader(theme.spacing(4)),
});
@@ -301,7 +301,6 @@ const TenantDetails = ({
-
{tenantInfo && tenantInfo.status && (
)}
+
}
title={match.params["tenantName"]}
diff --git a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantSecurity.tsx b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantSecurity.tsx
index c3796fcca..ae2f36c11 100644
--- a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantSecurity.tsx
+++ b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantSecurity.tsx
@@ -342,7 +342,7 @@ const TenantSecurity = ({
const checked = targetD.checked;
setEnableAutoCert(checked);
}}
- label={"Manage Inter-Node Certificates Automatically"}
+ label={"TLS"}
description={
"The internode certificates will be generated and managed by MinIO Operator"
}
diff --git a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantSummary.tsx b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantSummary.tsx
index 4d3a0ccff..053c17cd4 100644
--- a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantSummary.tsx
+++ b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantSummary.tsx
@@ -57,7 +57,7 @@ const styles = (theme: Theme) =>
...tenantDetailsStyles,
redState: {
color: theme.palette.error.main,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
marginRight: 4,
@@ -65,7 +65,7 @@ const styles = (theme: Theme) =>
},
yellowState: {
color: theme.palette.warning.main,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
marginRight: 4,
@@ -73,7 +73,7 @@ const styles = (theme: Theme) =>
},
greenState: {
color: theme.palette.success.main,
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
marginRight: 4,
@@ -81,7 +81,7 @@ const styles = (theme: Theme) =>
},
greyState: {
color: "grey",
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
width: 16,
height: 16,
marginRight: 4,
diff --git a/portal-ui/src/screens/Console/Users/UserDetails.tsx b/portal-ui/src/screens/Console/Users/UserDetails.tsx
index a2d1e34ef..778f9776c 100644
--- a/portal-ui/src/screens/Console/Users/UserDetails.tsx
+++ b/portal-ui/src/screens/Console/Users/UserDetails.tsx
@@ -22,16 +22,22 @@ import { Theme } from "@mui/material/styles";
import createStyles from "@mui/styles/createStyles";
import withStyles from "@mui/styles/withStyles";
import { Button, Grid } from "@mui/material";
-import { AddIcon, IAMPoliciesIcon, TrashIcon, UsersIcon } from "../../../icons";
+import {
+ AddIcon,
+ IAMPoliciesIcon,
+ LockIcon,
+ TrashIcon,
+ UsersIcon,
+} from "../../../icons";
import {
setErrorSnackMessage,
setModalErrorSnackMessage,
} from "../../../actions";
import {
- tableStyles,
actionsTray,
containerForHeader,
searchField,
+ tableStyles,
} from "../Common/FormComponents/common/styleLibrary";
import { IPolicyItem } from "./types";
import { ErrorResponseHandler } from "../../../common/types";
@@ -44,7 +50,6 @@ import history from "../../../history";
import UserServiceAccountsPanel from "./UserServiceAccountsPanel";
import ChangeUserPasswordModal from "../Account/ChangeUserPasswordModal";
import DeleteUserString from "./DeleteUserString";
-import LockIcon from "@mui/icons-material/Lock";
import ScreenTitle from "../Common/ScreenTitle/ScreenTitle";
import BoxIconButton from "../Common/BoxIconButton/BoxIconButton";
import PanelTitle from "../Common/PanelTitle/PanelTitle";
diff --git a/portal-ui/src/theme/main.ts b/portal-ui/src/theme/main.ts
index dc995f005..c84421268 100644
--- a/portal-ui/src/theme/main.ts
+++ b/portal-ui/src/theme/main.ts
@@ -77,7 +77,7 @@ const theme = createTheme({
fontSize: 14,
fontWeight: 600,
boxShadow: "none",
- "& .MuiSvgIcon-root": {
+ "& .min-icon": {
maxHeight: 18,
},
"&.MuiButton-contained.Mui-disabled": {