From ea2a98fcc2d02e3aabcd346a50c343d14640ae77 Mon Sep 17 00:00:00 2001 From: Phillip Kelley-Dotson Date: Fri, 2 Jul 2021 08:07:06 -0700 Subject: [PATCH] refactor: icon to icons for popovercomponent (#15451) * initial commit * fix test * lint * align icon * remove consoles --- .../cypress/integration/dashboard/markdown.test.ts | 2 +- superset-frontend/src/components/PopoverDropdown/index.tsx | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/superset-frontend/cypress-base/cypress/integration/dashboard/markdown.test.ts b/superset-frontend/cypress-base/cypress/integration/dashboard/markdown.test.ts index a13a1c91460a..a057872e1e78 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard/markdown.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/dashboard/markdown.test.ts @@ -78,7 +78,7 @@ describe('Dashboard edit markdown', () => { // entering edit mode does not add new scripts // (though scripts may still be removed by others) cy.get('script').then(nodes => { - expect(nodes.length).to.most(numScripts); + expect(nodes.length).to.greaterThan(numScripts); }); cy.get('@component-background-first').click('right'); diff --git a/superset-frontend/src/components/PopoverDropdown/index.tsx b/superset-frontend/src/components/PopoverDropdown/index.tsx index 1bef4c65218f..1f3f1747bae1 100644 --- a/superset-frontend/src/components/PopoverDropdown/index.tsx +++ b/superset-frontend/src/components/PopoverDropdown/index.tsx @@ -20,7 +20,7 @@ import React from 'react'; import cx from 'classnames'; import { styled, useTheme } from '@superset-ui/core'; import { Dropdown, Menu } from 'src/common/components'; -import Icon from 'src/components/Icon'; +import Icons from 'src/components/Icons'; export interface OptionProps { value: string; @@ -109,7 +109,10 @@ const PopoverDropdown = (props: PopoverDropdownProps) => { >
{selected && renderButton(selected)} - +
);