From 39eeedec2ccf5a08e2019d7a7c66380ff0c376fb Mon Sep 17 00:00:00 2001
From: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Date: Fri, 3 Sep 2021 12:37:53 -0700
Subject: [PATCH] Add, Preview and Lock icons applied (#1005)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
---
portal-ui/src/icons/AddIcon.tsx | 18 ++++-----
portal-ui/src/icons/LockIcon.tsx | 37 +++++++++++++++++++
portal-ui/src/icons/PreviewIcon.tsx | 37 +++++++++++++++++++
portal-ui/src/icons/index.ts | 2 +
.../src/screens/Console/Account/Account.tsx | 5 +--
.../Buckets/BucketDetails/AccessRulePanel.tsx | 4 +-
.../Buckets/BucketDetails/BucketDetails.tsx | 4 ++
.../BucketDetails/BucketEventsPanel.tsx | 4 +-
.../BucketDetails/BucketLifecyclePanel.tsx | 4 +-
.../BucketDetails/BucketReplicationPanel.tsx | 4 +-
.../BucketDetails/BucketSummaryPanel.tsx | 4 ++
.../Buckets/ListBuckets/ListBuckets.tsx | 4 +-
.../Objects/ObjectDetails/ObjectDetails.tsx | 4 ++
.../Common/TableWrapper/TableActionButton.tsx | 7 ++--
.../ListNotificationEndpoints.tsx | 4 +-
.../ListTiersConfiguration.tsx | 4 +-
.../Console/DirectCSI/DirectCSIDrives.tsx | 4 +-
.../src/screens/Console/Groups/Groups.tsx | 4 +-
.../Console/ObjectBrowser/BrowseBuckets.tsx | 4 +-
.../screens/Console/Policies/ListPolicies.tsx | 4 +-
.../Tenants/ListTenants/ListTenants.tsx | 4 +-
.../Tenants/TenantDetails/PoolsSummary.tsx | 4 +-
.../src/screens/Console/Users/ListUsers.tsx | 4 +-
.../src/screens/Console/Users/UserDetails.tsx | 3 +-
.../Users/UserServiceAccountsPanel.tsx | 4 +-
25 files changed, 133 insertions(+), 48 deletions(-)
create mode 100644 portal-ui/src/icons/LockIcon.tsx
create mode 100644 portal-ui/src/icons/PreviewIcon.tsx
diff --git a/portal-ui/src/icons/AddIcon.tsx b/portal-ui/src/icons/AddIcon.tsx
index 9c6559da8..044a68a48 100644
--- a/portal-ui/src/icons/AddIcon.tsx
+++ b/portal-ui/src/icons/AddIcon.tsx
@@ -14,17 +14,15 @@
// 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 { SvgIcon } from "@material-ui/core";
-const AddIcon = () => {
+import * as React from "react";
+import { SvgIcon, SvgIconProps } from "@material-ui/core";
+
+const AddIcon = (props: SvgIconProps) => {
return (
-
-
+
+
);
};
diff --git a/portal-ui/src/icons/LockIcon.tsx b/portal-ui/src/icons/LockIcon.tsx
new file mode 100644
index 000000000..bc78845f8
--- /dev/null
+++ b/portal-ui/src/icons/LockIcon.tsx
@@ -0,0 +1,37 @@
+// 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 * as React from "react";
+import { SvgIcon, SvgIconProps } from "@material-ui/core";
+
+const LockIcon = (props: SvgIconProps) => {
+ return (
+
+
+
+ );
+};
+
+export default LockIcon;
diff --git a/portal-ui/src/icons/PreviewIcon.tsx b/portal-ui/src/icons/PreviewIcon.tsx
new file mode 100644
index 000000000..11d1781d4
--- /dev/null
+++ b/portal-ui/src/icons/PreviewIcon.tsx
@@ -0,0 +1,37 @@
+// 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 * as React from "react";
+import { SvgIcon, SvgIconProps } from "@material-ui/core";
+
+const PreviewIcon = (props: SvgIconProps) => {
+ return (
+
+
+
+ );
+};
+
+export default PreviewIcon;
diff --git a/portal-ui/src/icons/index.ts b/portal-ui/src/icons/index.ts
index 28b40fa6a..ded193e54 100644
--- a/portal-ui/src/icons/index.ts
+++ b/portal-ui/src/icons/index.ts
@@ -74,3 +74,5 @@ export { default as ServersIcon } from "./ServersIcon";
export { default as DrivesIcon } from "./DrivesIcon";
export { default as TotalObjectsIcon } from "./TotalObjectsIcon";
export { default as CircleIcon } from "./CircleIcon";
+export { default as PreviewIcon } from "./PreviewIcon";
+export { default as LockIcon } from "./LockIcon";
diff --git a/portal-ui/src/screens/Console/Account/Account.tsx b/portal-ui/src/screens/Console/Account/Account.tsx
index 46de9586b..35e70ae7b 100644
--- a/portal-ui/src/screens/Console/Account/Account.tsx
+++ b/portal-ui/src/screens/Console/Account/Account.tsx
@@ -26,7 +26,7 @@ import { setErrorSnackMessage } from "../../../actions";
import AddServiceAccount from "./AddServiceAccount";
import DeleteServiceAccount from "./DeleteServiceAccount";
import CredentialsPrompt from "../Common/CredentialsPrompt/CredentialsPrompt";
-import { CreateIcon } from "../../../icons";
+import { AddIcon, CreateIcon, LockIcon } from "../../../icons";
import TextField from "@material-ui/core/TextField";
import InputAdornment from "@material-ui/core/InputAdornment";
import TableWrapper from "../Common/TableWrapper/TableWrapper";
@@ -38,7 +38,6 @@ import {
searchField,
} from "../Common/FormComponents/common/styleLibrary";
import { ErrorResponseHandler } from "../../../common/types";
-import LockIcon from "@material-ui/icons/Lock";
import ChangePasswordModal from "./ChangePasswordModal";
import SearchIcon from "../../../icons/SearchIcon";
@@ -260,7 +259,7 @@ const Account = ({
}
+ startIcon={}
onClick={() => {
setAddScreenOpen(true);
setSelectedServiceAccount(null);
diff --git a/portal-ui/src/screens/Console/Buckets/BucketDetails/AccessRulePanel.tsx b/portal-ui/src/screens/Console/Buckets/BucketDetails/AccessRulePanel.tsx
index 7cf9caeb4..912214ef3 100644
--- a/portal-ui/src/screens/Console/Buckets/BucketDetails/AccessRulePanel.tsx
+++ b/portal-ui/src/screens/Console/Buckets/BucketDetails/AccessRulePanel.tsx
@@ -27,7 +27,7 @@ import api from "../../../../common/api";
import AddAccessRuleModal from "./AddAccessRule";
import DeleteAccessRuleModal from "./DeleteAccessRule";
import EditAccessRuleModal from "./EditAccessRule";
-import { CreateIcon } from "../../../../icons";
+import { AddIcon, CreateIcon } from "../../../../icons";
import Grid from "@material-ui/core/Grid";
import {
actionsTray,
@@ -222,7 +222,7 @@ const AccessRule = ({
}
+ startIcon={}
component="label"
onClick={() => {
setAddAccessRuleOpen(true);
diff --git a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketDetails.tsx b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketDetails.tsx
index 8ada8b0a8..1f525a058 100644
--- a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketDetails.tsx
+++ b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketDetails.tsx
@@ -118,6 +118,10 @@ const styles = (theme: Theme) =>
},
capitalizeFirst: {
textTransform: "capitalize",
+ "& .MuiSvgIcon-root": {
+ width: 16,
+ height: 16,
+ },
},
doubleElement: {
display: "flex",
diff --git a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketEventsPanel.tsx b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketEventsPanel.tsx
index 52c309c5b..3ba3e54b2 100644
--- a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketEventsPanel.tsx
+++ b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketEventsPanel.tsx
@@ -20,7 +20,7 @@ import { createStyles, Theme, withStyles } from "@material-ui/core/styles";
import { Button } from "@material-ui/core";
import get from "lodash/get";
import Grid from "@material-ui/core/Grid";
-import { CreateIcon } from "../../../../icons";
+import { AddIcon, CreateIcon } from "../../../../icons";
import { BucketEvent, BucketEventList } from "../types";
import { setErrorSnackMessage } from "../../../../actions";
import { AppState } from "../../../../store";
@@ -133,7 +133,7 @@ const BucketEventsPanel = ({
}
+ startIcon={}
size="medium"
onClick={() => {
setAddEventScreenOpen(true);
diff --git a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketLifecyclePanel.tsx b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketLifecyclePanel.tsx
index ac61b65ac..bd3de809a 100644
--- a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketLifecyclePanel.tsx
+++ b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketLifecyclePanel.tsx
@@ -22,7 +22,7 @@ import get from "lodash/get";
import * as reactMoment from "react-moment";
import Grid from "@material-ui/core/Grid";
import { LifeCycleItem } from "../types";
-import { CreateIcon } from "../../../../icons";
+import { AddIcon, CreateIcon } from "../../../../icons";
import {
actionsTray,
searchField,
@@ -181,7 +181,7 @@ const BucketLifecyclePanel = ({
}
+ startIcon={}
size="medium"
onClick={() => {
setAddLifecycleOpen(true);
diff --git a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketReplicationPanel.tsx b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketReplicationPanel.tsx
index 6b4539759..21900e670 100644
--- a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketReplicationPanel.tsx
+++ b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketReplicationPanel.tsx
@@ -19,7 +19,7 @@ import { connect } from "react-redux";
import { createStyles, Theme, withStyles } from "@material-ui/core/styles";
import { Button } from "@material-ui/core";
import Grid from "@material-ui/core/Grid";
-import { CreateIcon } from "../../../../icons";
+import { AddIcon, CreateIcon } from "../../../../icons";
import { setErrorSnackMessage } from "../../../../actions";
import {
actionsTray,
@@ -198,7 +198,7 @@ const BucketReplicationPanel = ({
variant="contained"
color="primary"
disabled={!canPutReplication}
- startIcon={}
+ startIcon={}
size="medium"
onClick={() => {
setOpenReplicationOpen(true);
diff --git a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketSummaryPanel.tsx b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketSummaryPanel.tsx
index a6d8f2d8e..cb21e1ff4 100644
--- a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketSummaryPanel.tsx
+++ b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketSummaryPanel.tsx
@@ -91,6 +91,10 @@ const styles = (theme: Theme) =>
},
capitalizeFirst: {
textTransform: "capitalize",
+ "& .MuiSvgIcon-root": {
+ width: 16,
+ height: 16,
+ },
},
titleCol: {
width: "25%",
diff --git a/portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx b/portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx
index 3980e8cf9..0daa6bdf1 100644
--- a/portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx
+++ b/portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx
@@ -24,7 +24,7 @@ import InputAdornment from "@material-ui/core/InputAdornment";
import FileCopyIcon from "@material-ui/icons/FileCopy";
import Moment from "react-moment";
import { Bucket, BucketList, HasPermissionResponse } from "../types";
-import { CreateIcon } from "../../../../icons";
+import { AddIcon, CreateIcon } from "../../../../icons";
import { niceBytes } from "../../../../common/utils";
import { AppState } from "../../../../store";
import { addBucketOpen, addBucketReset } from "../actions";
@@ -286,7 +286,7 @@ const ListBuckets = ({
}
+ startIcon={}
onClick={() => {
addBucketOpen(true);
}}
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 73fc9ae51..3103ddd53 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
@@ -177,6 +177,10 @@ const styles = (theme: Theme) =>
},
capitalizeFirst: {
textTransform: "capitalize",
+ "& .MuiSvgIcon-root": {
+ width: 16,
+ height: 16,
+ },
},
titleCol: {
width: "25%",
diff --git a/portal-ui/src/screens/Console/Common/TableWrapper/TableActionButton.tsx b/portal-ui/src/screens/Console/Common/TableWrapper/TableActionButton.tsx
index 3f494c089..936f461eb 100644
--- a/portal-ui/src/screens/Console/Common/TableWrapper/TableActionButton.tsx
+++ b/portal-ui/src/screens/Console/Common/TableWrapper/TableActionButton.tsx
@@ -18,7 +18,6 @@ import isString from "lodash/isString";
import { Link } from "react-router-dom";
import { createStyles, withStyles } from "@material-ui/core/styles";
import { IconButton } from "@material-ui/core";
-import ViewIcon from "./TableActionIcons/ViewIcon";
import ShareIcon from "./TableActionIcons/ShareIcon";
import CloudIcon from "./TableActionIcons/CloudIcon";
import ConsoleIcon from "./TableActionIcons/ConsoleIcon";
@@ -26,7 +25,7 @@ import DisableIcon from "./TableActionIcons/DisableIcon";
import FormatDriveIcon from "./TableActionIcons/FormatDriveIcon";
import EditIcon from "../../../../icons/EditIcon";
import TrashIcon from "../../../../icons/TrashIcon";
-import { IAMPoliciesIcon } from "../../../../icons";
+import { IAMPoliciesIcon, PreviewIcon } from "../../../../icons";
import DownloadIcon from "../../../../icons/DownloadIcon";
const styles = () =>
@@ -58,7 +57,7 @@ interface IActionButton {
const defineIcon = (type: string, selected: boolean) => {
switch (type) {
case "view":
- return ;
+ return ;
case "edit":
return ;
case "delete":
@@ -78,7 +77,7 @@ const defineIcon = (type: string, selected: boolean) => {
case "format":
return ;
case "preview":
- return ;
+ return ;
}
return null;
diff --git a/portal-ui/src/screens/Console/Configurations/NotificationEndpoints/ListNotificationEndpoints.tsx b/portal-ui/src/screens/Console/Configurations/NotificationEndpoints/ListNotificationEndpoints.tsx
index d134e7833..0917ad3df 100644
--- a/portal-ui/src/screens/Console/Configurations/NotificationEndpoints/ListNotificationEndpoints.tsx
+++ b/portal-ui/src/screens/Console/Configurations/NotificationEndpoints/ListNotificationEndpoints.tsx
@@ -29,7 +29,7 @@ import {
TransformedEndpointItem,
} from "./types";
import { notificationTransform } from "./utils";
-import { CreateIcon } from "../../../../icons";
+import { AddIcon, CreateIcon } from "../../../../icons";
import TableWrapper from "../../Common/TableWrapper/TableWrapper";
import AddNotificationEndpoint from "./AddNotificationEndpoint";
import { setErrorSnackMessage } from "../../../../actions";
@@ -201,7 +201,7 @@ const ListNotificationEndpoints = ({
}
+ startIcon={}
onClick={openNewLambdaSelector}
>
Add Notification Target
diff --git a/portal-ui/src/screens/Console/Configurations/TiersConfiguration/ListTiersConfiguration.tsx b/portal-ui/src/screens/Console/Configurations/TiersConfiguration/ListTiersConfiguration.tsx
index 3a2a3bb77..609a976b1 100644
--- a/portal-ui/src/screens/Console/Configurations/TiersConfiguration/ListTiersConfiguration.tsx
+++ b/portal-ui/src/screens/Console/Configurations/TiersConfiguration/ListTiersConfiguration.tsx
@@ -29,7 +29,7 @@ import {
settingsCommon,
typesSelection,
} from "../../Common/FormComponents/common/styleLibrary";
-import { CreateIcon } from "../../../../icons";
+import { AddIcon, CreateIcon } from "../../../../icons";
import { setErrorSnackMessage } from "../../../../actions";
import { ITierElement, ITierResponse } from "./types";
import { ErrorResponseHandler } from "../../../../common/types";
@@ -246,7 +246,7 @@ const ListTiersConfiguration = ({
}
+ startIcon={}
onClick={addTier}
>
Add Tier
diff --git a/portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx b/portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx
index aa822c8da..94d3fe733 100644
--- a/portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx
+++ b/portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx
@@ -26,7 +26,7 @@ import {
} from "@material-ui/core";
import get from "lodash/get";
import GroupIcon from "@material-ui/icons/Group";
-import { CreateIcon } from "../../../icons";
+import { AddIcon, CreateIcon } from "../../../icons";
import { setErrorSnackMessage } from "../../../actions";
import {
actionsTray,
@@ -292,7 +292,7 @@ const DirectCSIMain = ({
}
+ startIcon={}
onClick={formatAllDrives}
disabled={notAvailable}
>
diff --git a/portal-ui/src/screens/Console/Groups/Groups.tsx b/portal-ui/src/screens/Console/Groups/Groups.tsx
index c4e6f7ddb..913b027cb 100644
--- a/portal-ui/src/screens/Console/Groups/Groups.tsx
+++ b/portal-ui/src/screens/Console/Groups/Groups.tsx
@@ -21,7 +21,7 @@ import Grid from "@material-ui/core/Grid";
import TextField from "@material-ui/core/TextField";
import InputAdornment from "@material-ui/core/InputAdornment";
import { Button } from "@material-ui/core";
-import { CreateIcon } from "../../../icons";
+import { AddIcon, CreateIcon } from "../../../icons";
import { setErrorSnackMessage } from "../../../actions";
import { GroupsList } from "./types";
import { stringSort } from "../../../utils/sortFunctions";
@@ -209,7 +209,7 @@ const Groups = ({ classes, setErrorSnackMessage }: IGroupsProps) => {
}
+ startIcon={}
onClick={() => {
setSelectedGroup(null);
setGroupOpen(true);
diff --git a/portal-ui/src/screens/Console/ObjectBrowser/BrowseBuckets.tsx b/portal-ui/src/screens/Console/ObjectBrowser/BrowseBuckets.tsx
index 01819640f..a239045d5 100644
--- a/portal-ui/src/screens/Console/ObjectBrowser/BrowseBuckets.tsx
+++ b/portal-ui/src/screens/Console/ObjectBrowser/BrowseBuckets.tsx
@@ -23,7 +23,7 @@ import Grid from "@material-ui/core/Grid";
import TextField from "@material-ui/core/TextField";
import InputAdornment from "@material-ui/core/InputAdornment";
import { IconButton, Tooltip } from "@material-ui/core";
-import { BucketsIcon, CreateIcon } from "../../../icons";
+import { AddIcon, BucketsIcon, CreateIcon } from "../../../icons";
import { niceBytes } from "../../../common/utils";
import { Bucket, BucketList, HasPermissionResponse } from "../Buckets/types";
import {
@@ -246,7 +246,7 @@ const BrowseBuckets = ({
setAddScreenOpen(true);
}}
>
-
+
diff --git a/portal-ui/src/screens/Console/Policies/ListPolicies.tsx b/portal-ui/src/screens/Console/Policies/ListPolicies.tsx
index 568c16c5a..5157fcba2 100644
--- a/portal-ui/src/screens/Console/Policies/ListPolicies.tsx
+++ b/portal-ui/src/screens/Console/Policies/ListPolicies.tsx
@@ -23,7 +23,7 @@ import Grid from "@material-ui/core/Grid";
import TextField from "@material-ui/core/TextField";
import InputAdornment from "@material-ui/core/InputAdornment";
import { Policy, PolicyList } from "./types";
-import { CreateIcon } from "../../../icons";
+import { AddIcon, CreateIcon } from "../../../icons";
import { setErrorSnackMessage } from "../../../actions";
import {
actionsTray,
@@ -196,7 +196,7 @@ const ListPolicies = ({ classes, setErrorSnackMessage }: IPoliciesProps) => {
}
+ startIcon={}
onClick={() => {
setAddScreenOpen(true);
setPolicyEdit(null);
diff --git a/portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx b/portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx
index 9c8ed42ed..cbf63cf54 100644
--- a/portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx
+++ b/portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx
@@ -30,7 +30,7 @@ import {
settingsCommon,
} from "../../Common/FormComponents/common/styleLibrary";
import { setErrorSnackMessage } from "../../../../actions";
-import { CircleIcon, CreateIcon } from "../../../../icons";
+import { AddIcon, CircleIcon, CreateIcon } from "../../../../icons";
import { resetAddTenantForm } from "../actions";
import { ErrorResponseHandler } from "../../../../common/types";
import api from "../../../../common/api";
@@ -314,7 +314,7 @@ const ListTenants = ({
}
+ startIcon={}
onClick={createTenant}
>
Create Tenant
diff --git a/portal-ui/src/screens/Console/Tenants/TenantDetails/PoolsSummary.tsx b/portal-ui/src/screens/Console/Tenants/TenantDetails/PoolsSummary.tsx
index 98a2ff878..4d03ebcef 100644
--- a/portal-ui/src/screens/Console/Tenants/TenantDetails/PoolsSummary.tsx
+++ b/portal-ui/src/screens/Console/Tenants/TenantDetails/PoolsSummary.tsx
@@ -24,7 +24,7 @@ import {
} from "../../Common/FormComponents/common/styleLibrary";
import { Button, TextField } from "@material-ui/core";
import Grid from "@material-ui/core/Grid";
-import { CreateIcon } from "../../../../icons";
+import { AddIcon, CreateIcon } from "../../../../icons";
import { IPool, ITenant } from "../ListTenants/types";
import { setErrorSnackMessage } from "../../../../actions";
import TableWrapper from "../../Common/TableWrapper/TableWrapper";
@@ -127,7 +127,7 @@ const PoolsSummary = ({
}
+ startIcon={}
onClick={() => {
setAddPool(true);
}}
diff --git a/portal-ui/src/screens/Console/Users/ListUsers.tsx b/portal-ui/src/screens/Console/Users/ListUsers.tsx
index 51b1958da..828005aac 100644
--- a/portal-ui/src/screens/Console/Users/ListUsers.tsx
+++ b/portal-ui/src/screens/Console/Users/ListUsers.tsx
@@ -22,7 +22,7 @@ import { Button, Grid, InputAdornment, TextField } from "@material-ui/core";
import GroupIcon from "@material-ui/icons/Group";
import { User, UsersList } from "./types";
import { usersSort } from "../../../utils/sortFunctions";
-import { CreateIcon } from "../../../icons";
+import { AddIcon, CreateIcon } from "../../../icons";
import {
actionsTray,
containerForHeader,
@@ -252,7 +252,7 @@ const ListUsers = ({ classes, setErrorSnackMessage, history }: IUsersProps) => {
}
+ startIcon={}
onClick={() => {
setAddScreenOpen(true);
setSelectedUser(null);
diff --git a/portal-ui/src/screens/Console/Users/UserDetails.tsx b/portal-ui/src/screens/Console/Users/UserDetails.tsx
index e5ff7f62f..f92515aeb 100644
--- a/portal-ui/src/screens/Console/Users/UserDetails.tsx
+++ b/portal-ui/src/screens/Console/Users/UserDetails.tsx
@@ -21,6 +21,7 @@ import { Link } from "react-router-dom";
import { createStyles, Theme, withStyles } from "@material-ui/core/styles";
import { Button, Grid, IconButton, Tooltip } from "@material-ui/core";
import {
+ AddIcon,
CreateIcon,
DeleteIcon,
IAMPoliciesIcon,
@@ -361,7 +362,7 @@ const UserDetails = ({ classes, match }: IUserDetailsProps) => {
}
+ startIcon={}
size="medium"
onClick={() => {
setAddGroupOpen(true);
diff --git a/portal-ui/src/screens/Console/Users/UserServiceAccountsPanel.tsx b/portal-ui/src/screens/Console/Users/UserServiceAccountsPanel.tsx
index ffb07c1fd..168b0e7bb 100644
--- a/portal-ui/src/screens/Console/Users/UserServiceAccountsPanel.tsx
+++ b/portal-ui/src/screens/Console/Users/UserServiceAccountsPanel.tsx
@@ -31,7 +31,7 @@ import { ErrorResponseHandler } from "../../../common/types";
import AddUserServiceAccount from "./AddUserServiceAccount";
import DeleteServiceAccount from "../Account/DeleteServiceAccount";
import CredentialsPrompt from "../Common/CredentialsPrompt/CredentialsPrompt";
-import { CreateIcon } from "../../../icons";
+import { AddIcon, CreateIcon } from "../../../icons";
import Button from "@material-ui/core/Button";
interface IUserServiceAccountsProps {
@@ -163,7 +163,7 @@ const UserServiceAccountsPanel = ({
}
+ startIcon={}
onClick={() => {
setAddScreenOpen(true);
setAddScreenOpen(true);