mirror of
https://github.com/apache/superset.git
synced 2026-04-07 10:31:50 +00:00
chore: Moves Switch to the components folder (#14135)
This commit is contained in:
committed by
GitHub
parent
e4c8084285
commit
018caa528a
@@ -23,7 +23,7 @@ import { Provider } from 'react-redux';
|
||||
import thunk from 'redux-thunk';
|
||||
import { styledMount as mount } from 'spec/helpers/theming';
|
||||
import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
|
||||
import { Switch } from 'src/common/components/Switch';
|
||||
import { Switch } from 'src/components/Switch';
|
||||
import ListView from 'src/components/ListView';
|
||||
import SubMenu from 'src/components/Menu/SubMenu';
|
||||
import AlertList from 'src/views/CRUD/alert/AlertList';
|
||||
|
||||
@@ -26,7 +26,7 @@ import AlertReportModal from 'src/views/CRUD/alert/AlertReportModal';
|
||||
import Modal from 'src/common/components/Modal';
|
||||
import { AsyncSelect, NativeGraySelect as Select } from 'src/components/Select';
|
||||
import { Radio } from 'src/common/components/Radio';
|
||||
import { Switch } from 'src/common/components/Switch';
|
||||
import { Switch } from 'src/components/Switch';
|
||||
import TextAreaControl from 'src/explore/components/controls/TextAreaControl';
|
||||
import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
|
||||
import { styledMount as mount } from 'spec/helpers/theming';
|
||||
|
||||
@@ -24,7 +24,6 @@ import { CronPicker, CronError } from 'src/components/CronPicker';
|
||||
import Modal from './Modal';
|
||||
import Tabs, { EditableTabs } from './Tabs';
|
||||
import { Tooltip as AntdTooltip } from './Tooltip';
|
||||
import { Switch as AntdSwitch } from './Switch';
|
||||
import { Menu, Input, Divider } from '.';
|
||||
import { Dropdown } from './Dropdown';
|
||||
import InfoTooltip from './InfoTooltip';
|
||||
@@ -198,14 +197,6 @@ StyledInfoTooltip.argTypes = {
|
||||
},
|
||||
};
|
||||
|
||||
export const Switch = () => (
|
||||
<>
|
||||
<AntdSwitch defaultChecked />
|
||||
<br />
|
||||
<AntdSwitch size="small" defaultChecked />
|
||||
</>
|
||||
);
|
||||
|
||||
export function StyledCronPicker() {
|
||||
// @ts-ignore
|
||||
const inputRef = useRef<Input>(null);
|
||||
|
||||
@@ -31,7 +31,7 @@ import ListView, {
|
||||
ListViewProps,
|
||||
} from 'src/components/ListView';
|
||||
import SubMenu, { SubMenuProps } from 'src/components/Menu/SubMenu';
|
||||
import { Switch } from 'src/common/components/Switch';
|
||||
import { Switch } from 'src/components/Switch';
|
||||
import { DATETIME_WITH_TIME_ZONE } from 'src/constants';
|
||||
import withToasts from 'src/messageToasts/enhancers/withToasts';
|
||||
import AlertStatusIcon from 'src/views/CRUD/alert/components/AlertStatusIcon';
|
||||
|
||||
@@ -23,7 +23,7 @@ import { useSingleViewResource } from 'src/views/CRUD/hooks';
|
||||
|
||||
import Icon from 'src/components/Icon';
|
||||
import Modal from 'src/common/components/Modal';
|
||||
import { Switch } from 'src/common/components/Switch';
|
||||
import { Switch } from 'src/components/Switch';
|
||||
import { Radio } from 'src/common/components/Radio';
|
||||
import { AsyncSelect, NativeGraySelect as Select } from 'src/components/Select';
|
||||
import { FeatureFlag, isFeatureEnabled } from 'src/featureFlags';
|
||||
|
||||
Reference in New Issue
Block a user