mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +00:00
chore: Moves components out of the commons folder (#18931)
* refactor: Moves components out of the commons folder * Fixes tests
This commit is contained in:
committed by
GitHub
parent
2cb3635256
commit
fd4bd1edbc
@@ -31,13 +31,9 @@ import StyledModal from 'src/components/Modal';
|
||||
import Mousetrap from 'mousetrap';
|
||||
import Button from 'src/components/Button';
|
||||
import Timer from 'src/components/Timer';
|
||||
import {
|
||||
Dropdown,
|
||||
Menu as AntdMenu,
|
||||
Menu,
|
||||
Switch,
|
||||
Input,
|
||||
} from 'src/common/components';
|
||||
import { Dropdown, Switch } from 'src/common/components';
|
||||
import { Input } from 'src/components/Input';
|
||||
import { Menu } from 'src/components/Menu';
|
||||
import Icons from 'src/components/Icons';
|
||||
import { detectOS } from 'src/utils/common';
|
||||
import {
|
||||
@@ -578,19 +574,16 @@ class SqlEditor extends React.PureComponent {
|
||||
LIMIT_DROPDOWN.push(maxRow);
|
||||
|
||||
return (
|
||||
<AntdMenu>
|
||||
<Menu>
|
||||
{[...new Set(LIMIT_DROPDOWN)].map(limit => (
|
||||
<AntdMenu.Item
|
||||
key={`${limit}`}
|
||||
onClick={() => this.setQueryLimit(limit)}
|
||||
>
|
||||
<Menu.Item key={`${limit}`} onClick={() => this.setQueryLimit(limit)}>
|
||||
{/* // eslint-disable-line no-use-before-define */}
|
||||
<a role="button" styling="link">
|
||||
{this.convertToNumWithSpaces(limit)}
|
||||
</a>{' '}
|
||||
</AntdMenu.Item>
|
||||
</Menu.Item>
|
||||
))}
|
||||
</AntdMenu>
|
||||
</Menu>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user