From e1ceb7f7cc86fb06b3f9968865e559b66fe6ceaf Mon Sep 17 00:00:00 2001 From: Phillip Kelley-Dotson Date: Wed, 23 Jun 2021 13:49:17 -0700 Subject: [PATCH] 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 +- .../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 49278a6cbc..f08e9bf604 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({ } > - ); diff --git a/superset-frontend/src/components/TableSelector/index.tsx b/superset-frontend/src/components/TableSelector/index.tsx index 56d3b21572..4ac52b80f0 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 48cda77f43..255d853cc3 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 7d5fbb2852..15a0096996 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; } `;