diff --git a/superset-frontend/spec/javascripts/explore/components/AdhocFilterOption_spec.jsx b/superset-frontend/spec/javascripts/explore/components/AdhocFilterOption_spec.jsx index 45ec377f1ddb5..20433d6c909f1 100644 --- a/superset-frontend/spec/javascripts/explore/components/AdhocFilterOption_spec.jsx +++ b/superset-frontend/spec/javascripts/explore/components/AdhocFilterOption_spec.jsx @@ -20,7 +20,7 @@ import React from 'react'; import sinon from 'sinon'; import { shallow } from 'enzyme'; -import Popover from 'src/common/components/Popover'; +import Popover from 'src/components/Popover'; import AdhocFilter, { EXPRESSION_TYPES, diff --git a/superset-frontend/spec/javascripts/explore/components/AdhocMetricOption_spec.jsx b/superset-frontend/spec/javascripts/explore/components/AdhocMetricOption_spec.jsx index ca1651e57b5e8..14b4185ab77a7 100644 --- a/superset-frontend/spec/javascripts/explore/components/AdhocMetricOption_spec.jsx +++ b/superset-frontend/spec/javascripts/explore/components/AdhocMetricOption_spec.jsx @@ -21,7 +21,7 @@ import React from 'react'; import sinon from 'sinon'; import { shallow } from 'enzyme'; -import Popover from 'src/common/components/Popover'; +import Popover from 'src/components/Popover'; import { AGGREGATES } from 'src/explore/constants'; import AdhocMetricOption from 'src/explore/components/controls/MetricControl/AdhocMetricOption'; import AdhocMetric from 'src/explore/components/controls/MetricControl/AdhocMetric'; diff --git a/superset-frontend/spec/javascripts/explore/components/ColorPickerControl_spec.jsx b/superset-frontend/spec/javascripts/explore/components/ColorPickerControl_spec.jsx index f9822bf338e47..9fda1017e1104 100644 --- a/superset-frontend/spec/javascripts/explore/components/ColorPickerControl_spec.jsx +++ b/superset-frontend/spec/javascripts/explore/components/ColorPickerControl_spec.jsx @@ -23,7 +23,7 @@ import { CategoricalScheme, getCategoricalSchemeRegistry, } from '@superset-ui/core'; -import Popover from 'src/common/components/Popover'; +import Popover from 'src/components/Popover'; import ColorPickerControl from 'src/explore/components/controls/ColorPickerControl'; import ControlHeader from 'src/explore/components/ControlHeader'; diff --git a/superset-frontend/spec/javascripts/explore/components/EmbedCodeButton_spec.jsx b/superset-frontend/spec/javascripts/explore/components/EmbedCodeButton_spec.jsx index 2c61cceaaeec9..b28e4abfd79ca 100644 --- a/superset-frontend/spec/javascripts/explore/components/EmbedCodeButton_spec.jsx +++ b/superset-frontend/spec/javascripts/explore/components/EmbedCodeButton_spec.jsx @@ -19,7 +19,7 @@ import React from 'react'; import { shallow, mount } from 'enzyme'; import { supersetTheme, ThemeProvider } from '@superset-ui/core'; -import Popover from 'src/common/components/Popover'; +import Popover from 'src/components/Popover'; import sinon from 'sinon'; import { Provider } from 'react-redux'; import configureStore from 'redux-mock-store'; diff --git a/superset-frontend/spec/javascripts/explore/components/FilterBoxItemControl_spec.jsx b/superset-frontend/spec/javascripts/explore/components/FilterBoxItemControl_spec.jsx index 09727a6b8c19f..597c4446e3e03 100644 --- a/superset-frontend/spec/javascripts/explore/components/FilterBoxItemControl_spec.jsx +++ b/superset-frontend/spec/javascripts/explore/components/FilterBoxItemControl_spec.jsx @@ -21,7 +21,7 @@ import React from 'react'; import sinon from 'sinon'; import { shallow } from 'enzyme'; -import Popover from 'src/common/components/Popover'; +import Popover from 'src/components/Popover'; import FilterBoxItemControl from 'src/explore/components/controls/FilterBoxItemControl'; import FormRow from 'src/components/FormRow'; import datasources from 'spec/fixtures/mockDatasource'; diff --git a/superset-frontend/spec/javascripts/explore/components/TimeSeriesColumnControl_spec.jsx b/superset-frontend/spec/javascripts/explore/components/TimeSeriesColumnControl_spec.jsx index ff15552e5ec55..70dd952792c75 100644 --- a/superset-frontend/spec/javascripts/explore/components/TimeSeriesColumnControl_spec.jsx +++ b/superset-frontend/spec/javascripts/explore/components/TimeSeriesColumnControl_spec.jsx @@ -21,7 +21,7 @@ import React from 'react'; import { FormControl } from 'react-bootstrap'; import sinon from 'sinon'; import { shallow } from 'enzyme'; -import Popover from 'src/common/components/Popover'; +import Popover from 'src/components/Popover'; import TimeSeriesColumnControl from 'src/explore/components/controls/TimeSeriesColumnControl'; const defaultProps = { diff --git a/superset-frontend/spec/javascripts/explore/components/ViewportControl_spec.jsx b/superset-frontend/spec/javascripts/explore/components/ViewportControl_spec.jsx index 9a1e9b8d1a189..b71cd3b544f4f 100644 --- a/superset-frontend/spec/javascripts/explore/components/ViewportControl_spec.jsx +++ b/superset-frontend/spec/javascripts/explore/components/ViewportControl_spec.jsx @@ -19,7 +19,7 @@ /* eslint-disable no-unused-expressions */ import React from 'react'; import { styledMount as mount } from 'spec/helpers/theming'; -import Popover from 'src/common/components/Popover'; +import Popover from 'src/components/Popover'; import Label from 'src/components/Label'; import ViewportControl from 'src/explore/components/controls/ViewportControl'; diff --git a/superset-frontend/src/common/components/Popover.tsx b/superset-frontend/src/common/components/Popover.tsx deleted file mode 100644 index b2682c458de9d..0000000000000 --- a/superset-frontend/src/common/components/Popover.tsx +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { Popover as AntdPopover } from 'src/common/components'; - -const SupersetPopover = AntdPopover; - -export default SupersetPopover; diff --git a/superset-frontend/src/common/components/common.stories.tsx b/superset-frontend/src/common/components/common.stories.tsx index 9aa548d7082d1..4510c24ddaf22 100644 --- a/superset-frontend/src/common/components/common.stories.tsx +++ b/superset-frontend/src/common/components/common.stories.tsx @@ -22,7 +22,6 @@ import { withKnobs, boolean, select } from '@storybook/addon-knobs'; import Button from 'src/components/Button'; import Modal from './Modal'; import Tabs, { EditableTabs } from './Tabs'; -import AntdPopover from './Popover'; import { Tooltip as AntdTooltip } from './Tooltip'; import { Switch as AntdSwitch } from './Switch'; import { Menu, Input, Divider } from '.'; @@ -127,34 +126,6 @@ export const TabsWithDropdownMenu = () => ( ); -export const Popover = () => ( - CONTENT} - > - - -); - export const Tooltip = () => (