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