This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new e1ceb7f  refactor: Icon to icons for certifiedIcon (#15306)
e1ceb7f is described below

commit e1ceb7f7cc86fb06b3f9968865e559b66fe6ceaf
Author: Phillip Kelley-Dotson <[email protected]>
AuthorDate: Wed Jun 23 13:49:17 2021 -0700

    refactor: Icon to icons for certifiedIcon (#15306)
    
    * initial commit
    
    * updated css
    
    * fix lint
---
 superset-frontend/src/components/CertifiedIcon/index.tsx      | 7 +++----
 superset-frontend/src/components/TableSelector/index.tsx      | 4 ++--
 superset-frontend/src/datasource/DatasourceEditor.jsx         | 2 +-
 superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx | 2 +-
 4 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/superset-frontend/src/components/CertifiedIcon/index.tsx 
b/superset-frontend/src/components/CertifiedIcon/index.tsx
index 49278a6..f08e9bf 100644
--- a/superset-frontend/src/components/CertifiedIcon/index.tsx
+++ b/superset-frontend/src/components/CertifiedIcon/index.tsx
@@ -18,7 +18,7 @@
  */
 import React from 'react';
 import { t, supersetTheme } from '@superset-ui/core';
-import Icon from 'src/components/Icon';
+import Icons from 'src/components/Icons';
 import { Tooltip } from 'src/components/Tooltip';
 
 export interface CertifiedIconProps {
@@ -46,11 +46,10 @@ function CertifiedIcon({
         </>
       }
     >
-      <Icon
-        color={supersetTheme.colors.primary.base}
+      <Icons.Certified
+        iconColor={supersetTheme.colors.primary.base}
         height={size}
         width={size}
-        name="certified"
       />
     </Tooltip>
   );
diff --git a/superset-frontend/src/components/TableSelector/index.tsx 
b/superset-frontend/src/components/TableSelector/index.tsx
index 56d3b21..4ac52b8 100644
--- a/superset-frontend/src/components/TableSelector/index.tsx
+++ b/superset-frontend/src/components/TableSelector/index.tsx
@@ -72,8 +72,8 @@ const TableLabel = styled.span`
   display: flex;
   white-space: nowrap;
 
-  > svg,
-  > small {
+  svg,
+  small {
     margin-right: ${({ theme }) => theme.gridUnit}px;
   }
 `;
diff --git a/superset-frontend/src/datasource/DatasourceEditor.jsx 
b/superset-frontend/src/datasource/DatasourceEditor.jsx
index 48cda77..255d853 100644
--- a/superset-frontend/src/datasource/DatasourceEditor.jsx
+++ b/superset-frontend/src/datasource/DatasourceEditor.jsx
@@ -75,7 +75,7 @@ const FlexRowContainer = styled.div`
   align-items: center;
   display: flex;
 
-  > svg {
+  svg {
     margin-right: ${({ theme }) => theme.gridUnit}px;
   }
 `;
diff --git a/superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx 
b/superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx
index 7d5fbb2..15a0096 100644
--- a/superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx
+++ b/superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx
@@ -66,7 +66,7 @@ const FlexRowContainer = styled.div`
   align-items: center;
   display: flex;
 
-  > svg {
+  svg {
     margin-right: ${({ theme }) => theme.gridUnit}px;
   }
 `;

Reply via email to