From c9352f1a6aecdf6abec7ccf0a96de8a2d8643a2a Mon Sep 17 00:00:00 2001 From: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> Date: Fri, 29 Oct 2021 12:31:36 -0700 Subject: [PATCH] Add Info Cards on Empty Screens (#1164) * Add Info Cards on Empty Screens Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> * Fix ICon Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> --- .../operator/kustomization.yaml | 9 - portal-ui/src/common/HelpBox.tsx | 25 +- .../BucketDetails/BucketEventsPanel.tsx | 1 + .../BucketDetails/BucketLifecyclePanel.tsx | 1 + .../BucketDetails/BucketReplicationPanel.tsx | 1 + .../Buckets/ListBuckets/ListBuckets.tsx | 47 ++- .../Console/Common/PageHeader/PageHeader.tsx | 4 +- .../ListTiersConfiguration.tsx | 280 ++++++++++-------- .../src/screens/Console/Groups/Groups.tsx | 94 +++++- .../ListNotificationEndpoints.tsx | 131 +++++--- .../Tenants/ListTenants/ListTenants.tsx | 41 ++- .../src/screens/Console/Users/ListUsers.tsx | 140 ++++++--- 12 files changed, 534 insertions(+), 240 deletions(-) delete mode 100644 k8s/operator-console/operator/kustomization.yaml diff --git a/k8s/operator-console/operator/kustomization.yaml b/k8s/operator-console/operator/kustomization.yaml deleted file mode 100644 index e636c9b4b..000000000 --- a/k8s/operator-console/operator/kustomization.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -# beginning of customizations -#namespace: min-ns - -resources: - - ../base - - https://github.com/minio/operator/?ref=v3.0.29 - diff --git a/portal-ui/src/common/HelpBox.tsx b/portal-ui/src/common/HelpBox.tsx index 3cd6e9f83..4831decf8 100644 --- a/portal-ui/src/common/HelpBox.tsx +++ b/portal-ui/src/common/HelpBox.tsx @@ -25,38 +25,47 @@ const styles = (theme: Theme) => root: { border: "1px solid rgb(234, 237, 238)", borderRadius: 5, + paddingTop: 10, + paddingLeft: 40, + paddingRight: 40, + paddingBottom: 40, marginTop: 10, marginBottom: 10, backgroundColor: "#fbfafa", }, icon: { - textAlign: "center", - padding: 30, - fontSize: 64, + fontSize: 16, + fontWeight: "bold", + marginBottom: 20, "& .MuiSvgIcon-root": { - fontSize: 64, + fontSize: 44, + marginRight: 15, }, }, iconSize: { fontSize: 64, }, - helpText: { padding: 30, paddingLeft: 0, fontSize: 16 }, + helpText: { + fontSize: 16, + }, }); interface IHelpBox { classes: any; iconComponent: any; + title: string; help: any; } -const HelpBox = ({ classes, iconComponent, help }: IHelpBox) => { +const HelpBox = ({ classes, iconComponent, title, help }: IHelpBox) => { return (