From b83ee46d0f15cec76b340cb2740c25e96b9afde2 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Fri, 16 Apr 2021 19:49:53 -0300 Subject: [PATCH] chore: Moves Modal to the components folder (#14130) --- .../dashboard/components/PropertiesModal_spec.jsx | 2 +- .../javascripts/datasource/ChangeDatasourceModal_spec.jsx | 2 +- .../spec/javascripts/datasource/DatasourceModal_spec.jsx | 2 +- .../javascripts/explore/components/VizTypeControl_spec.jsx | 2 +- .../spec/javascripts/sqllab/SaveQuery_spec.jsx | 2 +- .../javascripts/views/CRUD/alert/AlertReportModal_spec.jsx | 2 +- .../views/CRUD/annotation/AnnotationModal_spec.jsx | 2 +- .../CRUD/annotationlayers/AnnotationLayerModal_spec.jsx | 2 +- .../views/CRUD/csstemplates/CssTemplateModal_spec.jsx | 2 +- .../views/CRUD/data/database/DatabaseModal_spec.jsx | 2 +- .../CRUD/data/savedquery/SavedQueryPreviewModal_spec.jsx | 2 +- .../src/SqlLab/components/SaveDatasetModal.tsx | 2 +- superset-frontend/src/SqlLab/components/SaveQuery.tsx | 2 +- superset-frontend/src/SqlLab/components/SqlEditor.jsx | 2 +- superset-frontend/src/common/components/common.stories.tsx | 2 +- .../ConfirmStatusChange/ConfirmStatusChange.test.jsx | 2 +- superset-frontend/src/components/DeleteModal/index.tsx | 2 +- .../src/components/ErrorMessage/ErrorAlert.tsx | 2 +- .../src/components/ImportModal/ImportModal.test.tsx | 2 +- superset-frontend/src/components/ImportModal/index.tsx | 6 +++--- .../src/{common => }/components/Modal/Modal.tsx | 0 .../src/{common => }/components/Modal/index.ts | 0 superset-frontend/src/components/ModalTrigger/index.jsx | 2 +- superset-frontend/src/components/OmniContainer/index.tsx | 2 +- .../CrossFilterScopingModal/CrossFilterScopingModal.tsx | 2 +- .../src/dashboard/components/PropertiesModal/index.jsx | 2 +- .../nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx | 2 +- superset-frontend/src/datasource/ChangeDatasourceModal.tsx | 2 +- superset-frontend/src/datasource/DatasourceModal.tsx | 2 +- .../src/explore/components/PropertiesModal/index.tsx | 2 +- superset-frontend/src/explore/components/SaveModal.tsx | 2 +- .../src/explore/components/controls/VizTypeControl.jsx | 2 +- superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx | 2 +- .../src/views/CRUD/annotation/AnnotationModal.tsx | 2 +- .../views/CRUD/annotationlayers/AnnotationLayerModal.tsx | 2 +- .../src/views/CRUD/csstemplates/CssTemplateModal.tsx | 2 +- .../src/views/CRUD/data/database/DatabaseModal.tsx | 2 +- .../src/views/CRUD/data/dataset/AddDatasetModal.tsx | 2 +- .../src/views/CRUD/data/query/QueryPreviewModal.tsx | 2 +- .../views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx | 2 +- 40 files changed, 40 insertions(+), 40 deletions(-) rename superset-frontend/src/{common => }/components/Modal/Modal.tsx (100%) rename superset-frontend/src/{common => }/components/Modal/index.ts (100%) diff --git a/superset-frontend/spec/javascripts/dashboard/components/PropertiesModal_spec.jsx b/superset-frontend/spec/javascripts/dashboard/components/PropertiesModal_spec.jsx index 20edc28cd..81bd0d067 100644 --- a/superset-frontend/spec/javascripts/dashboard/components/PropertiesModal_spec.jsx +++ b/superset-frontend/spec/javascripts/dashboard/components/PropertiesModal_spec.jsx @@ -27,7 +27,7 @@ import { ThemeProvider, } from '@superset-ui/core'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import PropertiesModal from 'src/dashboard/components/PropertiesModal'; import { mockStore } from 'spec/fixtures/mockStore'; diff --git a/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx b/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx index c1f02e09a..4e7e9346f 100644 --- a/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx +++ b/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx @@ -24,7 +24,7 @@ import thunk from 'redux-thunk'; import { act } from 'react-dom/test-utils'; import sinon from 'sinon'; import { supersetTheme, ThemeProvider } from '@superset-ui/core'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import ChangeDatasourceModal from 'src/datasource/ChangeDatasourceModal'; import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint'; import mockDatasource from 'spec/fixtures/mockDatasource'; diff --git a/superset-frontend/spec/javascripts/datasource/DatasourceModal_spec.jsx b/superset-frontend/spec/javascripts/datasource/DatasourceModal_spec.jsx index 9d4d9c638..d965aec72 100644 --- a/superset-frontend/spec/javascripts/datasource/DatasourceModal_spec.jsx +++ b/superset-frontend/spec/javascripts/datasource/DatasourceModal_spec.jsx @@ -27,7 +27,7 @@ import sinon from 'sinon'; import { supersetTheme, ThemeProvider } from '@superset-ui/core'; import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import DatasourceModal from 'src/datasource/DatasourceModal'; import DatasourceEditor from 'src/datasource/DatasourceEditor'; import * as featureFlags from 'src/featureFlags'; diff --git a/superset-frontend/spec/javascripts/explore/components/VizTypeControl_spec.jsx b/superset-frontend/spec/javascripts/explore/components/VizTypeControl_spec.jsx index 496f68971..dc33c77d3 100644 --- a/superset-frontend/spec/javascripts/explore/components/VizTypeControl_spec.jsx +++ b/superset-frontend/spec/javascripts/explore/components/VizTypeControl_spec.jsx @@ -21,7 +21,7 @@ import sinon from 'sinon'; import { shallow } from 'enzyme'; import { getChartMetadataRegistry, ChartMetadata } from '@superset-ui/core'; import VizTypeControl from 'src/explore/components/controls/VizTypeControl'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; const defaultProps = { name: 'viz_type', diff --git a/superset-frontend/spec/javascripts/sqllab/SaveQuery_spec.jsx b/superset-frontend/spec/javascripts/sqllab/SaveQuery_spec.jsx index 33c96ced4..3a5673df3 100644 --- a/superset-frontend/spec/javascripts/sqllab/SaveQuery_spec.jsx +++ b/superset-frontend/spec/javascripts/sqllab/SaveQuery_spec.jsx @@ -21,7 +21,7 @@ import { FormControl } from 'react-bootstrap'; import { shallow } from 'enzyme'; import * as sinon from 'sinon'; import SaveQuery from 'src/SqlLab/components/SaveQuery'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Button from 'src/components/Button'; describe('SavedQuery', () => { diff --git a/superset-frontend/spec/javascripts/views/CRUD/alert/AlertReportModal_spec.jsx b/superset-frontend/spec/javascripts/views/CRUD/alert/AlertReportModal_spec.jsx index f494c237a..ca68fc7a0 100644 --- a/superset-frontend/spec/javascripts/views/CRUD/alert/AlertReportModal_spec.jsx +++ b/superset-frontend/spec/javascripts/views/CRUD/alert/AlertReportModal_spec.jsx @@ -23,7 +23,7 @@ import configureStore from 'redux-mock-store'; import fetchMock from 'fetch-mock'; import { act } from 'react-dom/test-utils'; import AlertReportModal from 'src/views/CRUD/alert/AlertReportModal'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import { AsyncSelect, NativeGraySelect as Select } from 'src/components/Select'; import { Radio } from 'src/common/components/Radio'; import { Switch } from 'src/components/Switch'; diff --git a/superset-frontend/spec/javascripts/views/CRUD/annotation/AnnotationModal_spec.jsx b/superset-frontend/spec/javascripts/views/CRUD/annotation/AnnotationModal_spec.jsx index 990928cf9..e6686d174 100644 --- a/superset-frontend/spec/javascripts/views/CRUD/annotation/AnnotationModal_spec.jsx +++ b/superset-frontend/spec/javascripts/views/CRUD/annotation/AnnotationModal_spec.jsx @@ -22,7 +22,7 @@ import configureStore from 'redux-mock-store'; import { Provider } from 'react-redux'; import fetchMock from 'fetch-mock'; import AnnotationModal from 'src/views/CRUD/annotation/AnnotationModal'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint'; import { JsonEditor } from 'src/components/AsyncAceEditor'; import { styledMount as mount } from 'spec/helpers/theming'; diff --git a/superset-frontend/spec/javascripts/views/CRUD/annotationlayers/AnnotationLayerModal_spec.jsx b/superset-frontend/spec/javascripts/views/CRUD/annotationlayers/AnnotationLayerModal_spec.jsx index a9add984b..878346fd6 100644 --- a/superset-frontend/spec/javascripts/views/CRUD/annotationlayers/AnnotationLayerModal_spec.jsx +++ b/superset-frontend/spec/javascripts/views/CRUD/annotationlayers/AnnotationLayerModal_spec.jsx @@ -22,7 +22,7 @@ import configureStore from 'redux-mock-store'; import { Provider } from 'react-redux'; import fetchMock from 'fetch-mock'; import AnnotationLayerModal from 'src/views/CRUD/annotationlayers/AnnotationLayerModal'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint'; import { styledMount as mount } from 'spec/helpers/theming'; diff --git a/superset-frontend/spec/javascripts/views/CRUD/csstemplates/CssTemplateModal_spec.jsx b/superset-frontend/spec/javascripts/views/CRUD/csstemplates/CssTemplateModal_spec.jsx index c3b8289ae..c503c709d 100644 --- a/superset-frontend/spec/javascripts/views/CRUD/csstemplates/CssTemplateModal_spec.jsx +++ b/superset-frontend/spec/javascripts/views/CRUD/csstemplates/CssTemplateModal_spec.jsx @@ -22,7 +22,7 @@ import { Provider } from 'react-redux'; import configureStore from 'redux-mock-store'; import fetchMock from 'fetch-mock'; import CssTemplateModal from 'src/views/CRUD/csstemplates/CssTemplateModal'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint'; import { CssEditor } from 'src/components/AsyncAceEditor'; import { styledMount as mount } from 'spec/helpers/theming'; diff --git a/superset-frontend/spec/javascripts/views/CRUD/data/database/DatabaseModal_spec.jsx b/superset-frontend/spec/javascripts/views/CRUD/data/database/DatabaseModal_spec.jsx index 213f7be74..9e200a59f 100644 --- a/superset-frontend/spec/javascripts/views/CRUD/data/database/DatabaseModal_spec.jsx +++ b/superset-frontend/spec/javascripts/views/CRUD/data/database/DatabaseModal_spec.jsx @@ -26,7 +26,7 @@ import userEvent from '@testing-library/user-event'; import { supersetTheme, ThemeProvider } from '@superset-ui/core'; import { Provider } from 'react-redux'; import DatabaseModal from 'src/views/CRUD/data/database/DatabaseModal'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Tabs from 'src/common/components/Tabs'; import fetchMock from 'fetch-mock'; import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint'; diff --git a/superset-frontend/spec/javascripts/views/CRUD/data/savedquery/SavedQueryPreviewModal_spec.jsx b/superset-frontend/spec/javascripts/views/CRUD/data/savedquery/SavedQueryPreviewModal_spec.jsx index 19d1235bd..e6f17f4ea 100644 --- a/superset-frontend/spec/javascripts/views/CRUD/data/savedquery/SavedQueryPreviewModal_spec.jsx +++ b/superset-frontend/spec/javascripts/views/CRUD/data/savedquery/SavedQueryPreviewModal_spec.jsx @@ -23,7 +23,7 @@ import fetchMock from 'fetch-mock'; import { styledMount as mount } from 'spec/helpers/theming'; import SavedQueryPreviewModal from 'src/views/CRUD/data/savedquery/SavedQueryPreviewModal'; import Button from 'src/components/Button'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint'; import { act } from 'react-dom/test-utils'; diff --git a/superset-frontend/src/SqlLab/components/SaveDatasetModal.tsx b/superset-frontend/src/SqlLab/components/SaveDatasetModal.tsx index e5c8b68f5..b5119fc6c 100644 --- a/superset-frontend/src/SqlLab/components/SaveDatasetModal.tsx +++ b/superset-frontend/src/SqlLab/components/SaveDatasetModal.tsx @@ -21,7 +21,7 @@ import React, { FunctionComponent } from 'react'; import { AutoCompleteProps } from 'antd/lib/auto-complete'; import { Radio } from 'src/common/components/Radio'; import { AutoComplete, Input } from 'src/common/components'; -import StyledModal from 'src/common/components/Modal'; +import StyledModal from 'src/components/Modal'; import Button from 'src/components/Button'; import { styled, t } from '@superset-ui/core'; import { RadioChangeEvent } from 'antd/lib/radio'; diff --git a/superset-frontend/src/SqlLab/components/SaveQuery.tsx b/superset-frontend/src/SqlLab/components/SaveQuery.tsx index 4907684fa..4b8e7a0b9 100644 --- a/superset-frontend/src/SqlLab/components/SaveQuery.tsx +++ b/superset-frontend/src/SqlLab/components/SaveQuery.tsx @@ -22,7 +22,7 @@ import { t, supersetTheme, styled } from '@superset-ui/core'; import Button from 'src/components/Button'; import FormLabel from 'src/components/FormLabel'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Icon from 'src/components/Icon'; const Styles = styled.span` diff --git a/superset-frontend/src/SqlLab/components/SqlEditor.jsx b/superset-frontend/src/SqlLab/components/SqlEditor.jsx index 1db78b18c..fb4169703 100644 --- a/superset-frontend/src/SqlLab/components/SqlEditor.jsx +++ b/superset-frontend/src/SqlLab/components/SqlEditor.jsx @@ -28,7 +28,7 @@ import Split from 'react-split'; import { t, styled, supersetTheme } from '@superset-ui/core'; import debounce from 'lodash/debounce'; import throttle from 'lodash/throttle'; -import StyledModal from 'src/common/components/Modal'; +import StyledModal from 'src/components/Modal'; import Mousetrap from 'mousetrap'; import Button from 'src/components/Button'; import Timer from 'src/components/Timer'; diff --git a/superset-frontend/src/common/components/common.stories.tsx b/superset-frontend/src/common/components/common.stories.tsx index fa6313059..1adb42dfb 100644 --- a/superset-frontend/src/common/components/common.stories.tsx +++ b/superset-frontend/src/common/components/common.stories.tsx @@ -21,7 +21,7 @@ import { action } from '@storybook/addon-actions'; import { withKnobs, boolean, select } from '@storybook/addon-knobs'; import Button from 'src/components/Button'; import { CronPicker, CronError } from 'src/components/CronPicker'; -import Modal from './Modal'; +import Modal from 'src/components/Modal'; import Tabs, { EditableTabs } from './Tabs'; import { Tooltip as AntdTooltip } from './Tooltip'; import { Menu, Input, Divider } from '.'; diff --git a/superset-frontend/src/components/ConfirmStatusChange/ConfirmStatusChange.test.jsx b/superset-frontend/src/components/ConfirmStatusChange/ConfirmStatusChange.test.jsx index 2d158cf2c..ba41f5b51 100644 --- a/superset-frontend/src/components/ConfirmStatusChange/ConfirmStatusChange.test.jsx +++ b/superset-frontend/src/components/ConfirmStatusChange/ConfirmStatusChange.test.jsx @@ -22,7 +22,7 @@ import Button from 'src/components/Button'; import { act } from 'react-dom/test-utils'; import { supersetTheme, ThemeProvider } from '@superset-ui/core'; import ConfirmStatusChange from 'src/components/ConfirmStatusChange'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; describe('ConfirmStatusChange', () => { const mockedProps = { diff --git a/superset-frontend/src/components/DeleteModal/index.tsx b/superset-frontend/src/components/DeleteModal/index.tsx index c784e5793..a4a29fb81 100644 --- a/superset-frontend/src/components/DeleteModal/index.tsx +++ b/superset-frontend/src/components/DeleteModal/index.tsx @@ -19,7 +19,7 @@ import { t, styled } from '@superset-ui/core'; import React, { useState } from 'react'; import { FormGroup, FormControl, FormControlProps } from 'react-bootstrap'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import FormLabel from 'src/components/FormLabel'; const StyleFormGroup = styled(FormGroup)` diff --git a/superset-frontend/src/components/ErrorMessage/ErrorAlert.tsx b/superset-frontend/src/components/ErrorMessage/ErrorAlert.tsx index d78f616d5..bd5ec4c2c 100644 --- a/superset-frontend/src/components/ErrorMessage/ErrorAlert.tsx +++ b/superset-frontend/src/components/ErrorMessage/ErrorAlert.tsx @@ -19,7 +19,7 @@ import React, { useState, ReactNode } from 'react'; import { styled, supersetTheme, t } from '@superset-ui/core'; import { noOp } from 'src/utils/common'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Button from 'src/components/Button'; import Icon from '../Icon'; diff --git a/superset-frontend/src/components/ImportModal/ImportModal.test.tsx b/superset-frontend/src/components/ImportModal/ImportModal.test.tsx index 859400593..478fd599b 100644 --- a/superset-frontend/src/components/ImportModal/ImportModal.test.tsx +++ b/superset-frontend/src/components/ImportModal/ImportModal.test.tsx @@ -24,7 +24,7 @@ import { ReactWrapper } from 'enzyme'; import Button from 'src/components/Button'; import { ImportResourceName } from 'src/views/CRUD/types'; import ImportModelsModal from 'src/components/ImportModal'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; const mockStore = configureStore([thunk]); const store = mockStore({}); diff --git a/superset-frontend/src/components/ImportModal/index.tsx b/superset-frontend/src/components/ImportModal/index.tsx index a8d3db468..f9dffcbab 100644 --- a/superset-frontend/src/components/ImportModal/index.tsx +++ b/superset-frontend/src/components/ImportModal/index.tsx @@ -20,7 +20,7 @@ import React, { FunctionComponent, useEffect, useRef, useState } from 'react'; import { styled, t } from '@superset-ui/core'; import Icon from 'src//components/Icon'; -import StyledModal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import { useImportResource } from 'src/views/CRUD/hooks'; import { ImportResourceName } from 'src/views/CRUD/types'; @@ -255,7 +255,7 @@ const ImportModelsModal: FunctionComponent = ({ } return ( - = ({ {renderPasswordFields()} {renderOverwriteConfirmation()} - + ); }; diff --git a/superset-frontend/src/common/components/Modal/Modal.tsx b/superset-frontend/src/components/Modal/Modal.tsx similarity index 100% rename from superset-frontend/src/common/components/Modal/Modal.tsx rename to superset-frontend/src/components/Modal/Modal.tsx diff --git a/superset-frontend/src/common/components/Modal/index.ts b/superset-frontend/src/components/Modal/index.ts similarity index 100% rename from superset-frontend/src/common/components/Modal/index.ts rename to superset-frontend/src/components/Modal/index.ts diff --git a/superset-frontend/src/components/ModalTrigger/index.jsx b/superset-frontend/src/components/ModalTrigger/index.jsx index d374e9e26..5091176c3 100644 --- a/superset-frontend/src/components/ModalTrigger/index.jsx +++ b/superset-frontend/src/components/ModalTrigger/index.jsx @@ -18,7 +18,7 @@ */ import React from 'react'; import PropTypes from 'prop-types'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Button from 'src/components/Button'; const propTypes = { diff --git a/superset-frontend/src/components/OmniContainer/index.tsx b/superset-frontend/src/components/OmniContainer/index.tsx index a9b90d06d..338661f7a 100644 --- a/superset-frontend/src/components/OmniContainer/index.tsx +++ b/superset-frontend/src/components/OmniContainer/index.tsx @@ -20,7 +20,7 @@ import React, { useRef, useState } from 'react'; import { styled } from '@superset-ui/core'; import { isFeatureEnabled, FeatureFlag } from 'src/featureFlags'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import { useComponentDidMount } from 'src/common/hooks/useComponentDidMount'; import { Omnibar } from './Omnibar'; import { LOG_ACTIONS_OMNIBAR_TRIGGERED } from '../../logger/LogUtils'; diff --git a/superset-frontend/src/dashboard/components/CrossFilterScopingModal/CrossFilterScopingModal.tsx b/superset-frontend/src/dashboard/components/CrossFilterScopingModal/CrossFilterScopingModal.tsx index 71b8f5e99..c0bca8cde 100644 --- a/superset-frontend/src/dashboard/components/CrossFilterScopingModal/CrossFilterScopingModal.tsx +++ b/superset-frontend/src/dashboard/components/CrossFilterScopingModal/CrossFilterScopingModal.tsx @@ -19,7 +19,7 @@ import { t } from '@superset-ui/core'; import React, { FC } from 'react'; import { useDispatch, useSelector } from 'react-redux'; -import { StyledModal } from 'src/common/components/Modal'; +import { StyledModal } from 'src/components/Modal'; import Button from 'src/components/Button'; import { Form } from 'src/common/components'; import { setChartConfiguration } from 'src/dashboard/actions/dashboardInfo'; diff --git a/superset-frontend/src/dashboard/components/PropertiesModal/index.jsx b/superset-frontend/src/dashboard/components/PropertiesModal/index.jsx index c1114e74d..ccf4b6c82 100644 --- a/superset-frontend/src/dashboard/components/PropertiesModal/index.jsx +++ b/superset-frontend/src/dashboard/components/PropertiesModal/index.jsx @@ -31,7 +31,7 @@ import { CategoricalColorNamespace, } from '@superset-ui/core'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import FormLabel from 'src/components/FormLabel'; import { JsonEditor } from 'src/components/AsyncAceEditor'; diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx index 165abd579..4ae541374 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal.tsx @@ -20,7 +20,7 @@ import React, { useCallback, useMemo, useState } from 'react'; import { uniq } from 'lodash'; import { t, styled } from '@superset-ui/core'; import { Form } from 'src/common/components'; -import { StyledModal } from 'src/common/components/Modal'; +import { StyledModal } from 'src/components/Modal'; import ErrorBoundary from 'src/components/ErrorBoundary'; import { useFilterConfigMap, useFilterConfiguration } from '../state'; import { FilterRemoval, NativeFiltersForm } from './types'; diff --git a/superset-frontend/src/datasource/ChangeDatasourceModal.tsx b/superset-frontend/src/datasource/ChangeDatasourceModal.tsx index 0934a6d2a..ff06b73a1 100644 --- a/superset-frontend/src/datasource/ChangeDatasourceModal.tsx +++ b/superset-frontend/src/datasource/ChangeDatasourceModal.tsx @@ -27,7 +27,7 @@ import { FormControl, FormControlProps } from 'react-bootstrap'; import Alert from 'src/components/Alert'; import { SupersetClient, t, styled } from '@superset-ui/core'; import TableView, { EmptyWrapperType } from 'src/components/TableView'; -import StyledModal from 'src/common/components/Modal'; +import StyledModal from 'src/components/Modal'; import Button from 'src/components/Button'; import { useListViewResource } from 'src/views/CRUD/hooks'; import Dataset from 'src/types/Dataset'; diff --git a/superset-frontend/src/datasource/DatasourceModal.tsx b/superset-frontend/src/datasource/DatasourceModal.tsx index 5fcff68e7..0b85d462e 100644 --- a/superset-frontend/src/datasource/DatasourceModal.tsx +++ b/superset-frontend/src/datasource/DatasourceModal.tsx @@ -21,7 +21,7 @@ import Alert from 'src/components/Alert'; import Button from 'src/components/Button'; import { styled, t, SupersetClient } from '@superset-ui/core'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import AsyncEsmComponent from 'src/components/AsyncEsmComponent'; import { isFeatureEnabled, FeatureFlag } from 'src/featureFlags'; diff --git a/superset-frontend/src/explore/components/PropertiesModal/index.tsx b/superset-frontend/src/explore/components/PropertiesModal/index.tsx index 40d5e130a..d40e9558e 100644 --- a/superset-frontend/src/explore/components/PropertiesModal/index.tsx +++ b/superset-frontend/src/explore/components/PropertiesModal/index.tsx @@ -24,7 +24,7 @@ import { FormGroup, FormControlProps, } from 'react-bootstrap'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Button from 'src/components/Button'; import { OptionsType } from 'react-select/src/types'; import { AsyncSelect } from 'src/components/Select'; diff --git a/superset-frontend/src/explore/components/SaveModal.tsx b/superset-frontend/src/explore/components/SaveModal.tsx index fc848530f..70b7d8442 100644 --- a/superset-frontend/src/explore/components/SaveModal.tsx +++ b/superset-frontend/src/explore/components/SaveModal.tsx @@ -23,7 +23,7 @@ import Alert from 'src/components/Alert'; import { JsonObject, t, styled } from '@superset-ui/core'; import ReactMarkdown from 'react-markdown'; import { Radio } from 'src/common/components/Radio'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Button from 'src/components/Button'; import FormLabel from 'src/components/FormLabel'; import { CreatableSelect } from 'src/components/Select'; diff --git a/superset-frontend/src/explore/components/controls/VizTypeControl.jsx b/superset-frontend/src/explore/components/controls/VizTypeControl.jsx index 84aee278f..7d6d36e20 100644 --- a/superset-frontend/src/explore/components/controls/VizTypeControl.jsx +++ b/superset-frontend/src/explore/components/controls/VizTypeControl.jsx @@ -22,7 +22,7 @@ import { Row, Col, FormControl } from 'react-bootstrap'; import { Behavior, t, getChartMetadataRegistry } from '@superset-ui/core'; import { useDynamicPluginContext } from 'src/components/DynamicPlugins'; import { Tooltip } from 'src/common/components/Tooltip'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Label from 'src/components/Label'; import ControlHeader from '../ControlHeader'; import './VizTypeControl.less'; diff --git a/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx b/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx index 34c71b970..2f04e7d4f 100644 --- a/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx +++ b/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx @@ -22,8 +22,8 @@ import rison from 'rison'; import { useSingleViewResource } from 'src/views/CRUD/hooks'; import Icon from 'src/components/Icon'; -import Modal from 'src/common/components/Modal'; import { Switch } from 'src/components/Switch'; +import Modal from 'src/components/Modal'; import { Radio } from 'src/common/components/Radio'; import { AsyncSelect, NativeGraySelect as Select } from 'src/components/Select'; import { FeatureFlag, isFeatureEnabled } from 'src/featureFlags'; diff --git a/superset-frontend/src/views/CRUD/annotation/AnnotationModal.tsx b/superset-frontend/src/views/CRUD/annotation/AnnotationModal.tsx index af0a65a50..f77949686 100644 --- a/superset-frontend/src/views/CRUD/annotation/AnnotationModal.tsx +++ b/superset-frontend/src/views/CRUD/annotation/AnnotationModal.tsx @@ -22,7 +22,7 @@ import { useSingleViewResource } from 'src/views/CRUD/hooks'; import { RangePicker } from 'src/components/DatePicker'; import moment from 'moment'; import Icon from 'src/components/Icon'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import withToasts from 'src/messageToasts/enhancers/withToasts'; import { JsonEditor } from 'src/components/AsyncAceEditor'; diff --git a/superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayerModal.tsx b/superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayerModal.tsx index c6cc56d9a..675e81b86 100644 --- a/superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayerModal.tsx +++ b/superset-frontend/src/views/CRUD/annotationlayers/AnnotationLayerModal.tsx @@ -21,7 +21,7 @@ import { styled, t } from '@superset-ui/core'; import { useSingleViewResource } from 'src/views/CRUD/hooks'; import Icon from 'src/components/Icon'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import withToasts from 'src/messageToasts/enhancers/withToasts'; import { AnnotationLayerObject } from './types'; diff --git a/superset-frontend/src/views/CRUD/csstemplates/CssTemplateModal.tsx b/superset-frontend/src/views/CRUD/csstemplates/CssTemplateModal.tsx index e7f1c3735..0f80b6703 100644 --- a/superset-frontend/src/views/CRUD/csstemplates/CssTemplateModal.tsx +++ b/superset-frontend/src/views/CRUD/csstemplates/CssTemplateModal.tsx @@ -21,7 +21,7 @@ import { styled, t } from '@superset-ui/core'; import { useSingleViewResource } from 'src/views/CRUD/hooks'; import Icon from 'src/components/Icon'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import withToasts from 'src/messageToasts/enhancers/withToasts'; import { CssEditor } from 'src/components/AsyncAceEditor'; diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx index beb062526..cb60cea14 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx @@ -25,7 +25,7 @@ import { } from 'src/views/CRUD/hooks'; import withToasts from 'src/messageToasts/enhancers/withToasts'; import Icon from 'src/components/Icon'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Tabs from 'src/common/components/Tabs'; import Button from 'src/components/Button'; import IndeterminateCheckbox from 'src/components/IndeterminateCheckbox'; diff --git a/superset-frontend/src/views/CRUD/data/dataset/AddDatasetModal.tsx b/superset-frontend/src/views/CRUD/data/dataset/AddDatasetModal.tsx index 88781707c..63bbb9be1 100644 --- a/superset-frontend/src/views/CRUD/data/dataset/AddDatasetModal.tsx +++ b/superset-frontend/src/views/CRUD/data/dataset/AddDatasetModal.tsx @@ -21,7 +21,7 @@ import { styled, t } from '@superset-ui/core'; import { useSingleViewResource } from 'src/views/CRUD/hooks'; import { isEmpty, isNil } from 'lodash'; import Icon from 'src/components/Icon'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import TableSelector from 'src/components/TableSelector'; import withToasts from 'src/messageToasts/enhancers/withToasts'; diff --git a/superset-frontend/src/views/CRUD/data/query/QueryPreviewModal.tsx b/superset-frontend/src/views/CRUD/data/query/QueryPreviewModal.tsx index 525324b26..cea45a9f7 100644 --- a/superset-frontend/src/views/CRUD/data/query/QueryPreviewModal.tsx +++ b/superset-frontend/src/views/CRUD/data/query/QueryPreviewModal.tsx @@ -18,7 +18,7 @@ */ import React, { useState } from 'react'; import { styled, t } from '@superset-ui/core'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import cx from 'classnames'; import Button from 'src/components/Button'; import withToasts, { ToastProps } from 'src/messageToasts/enhancers/withToasts'; diff --git a/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx b/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx index 470ab2cf9..6f556b279 100644 --- a/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx +++ b/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryPreviewModal.tsx @@ -18,7 +18,7 @@ */ import React, { FunctionComponent } from 'react'; import { styled, t } from '@superset-ui/core'; -import Modal from 'src/common/components/Modal'; +import Modal from 'src/components/Modal'; import Button from 'src/components/Button'; import SyntaxHighlighterCopy from 'src/views/CRUD/data/components/SyntaxHighlighterCopy'; import withToasts, { ToastProps } from 'src/messageToasts/enhancers/withToasts';