chore(antd): straightening out button import paths (#29969)
This commit is contained in:
parent
7e88649730
commit
5ec3093deb
|
|
@ -26,7 +26,7 @@ import {
|
|||
|
||||
import { mix } from 'polished';
|
||||
import cx from 'classnames';
|
||||
import { AntdButton } from 'src/components';
|
||||
import { Button as AntdButton } from 'antd';
|
||||
import { useTheme } from '@superset-ui/core';
|
||||
import { Tooltip } from 'src/components/Tooltip';
|
||||
import { ButtonProps as AntdButtonProps } from 'antd/lib/button';
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
*/
|
||||
export { default as Select } from './Select/Select';
|
||||
export { default as AsyncSelect } from './Select/AsyncSelect';
|
||||
export { default as Button } from './Button';
|
||||
|
||||
/*
|
||||
* Components that don't conflict with the ones in src/components.
|
||||
|
|
@ -57,7 +58,6 @@ export {
|
|||
*/
|
||||
export {
|
||||
Breadcrumb as AntdBreadcrumb,
|
||||
Button as AntdButton,
|
||||
Card as AntdCard,
|
||||
Checkbox as AntdCheckbox,
|
||||
Collapse as AntdCollapse,
|
||||
|
|
|
|||
|
|
@ -35,8 +35,7 @@ import {
|
|||
LOG_ACTIONS_TOGGLE_EDIT_DASHBOARD,
|
||||
} from 'src/logger/LogUtils';
|
||||
import Icons from 'src/components/Icons';
|
||||
import Button from 'src/components/Button';
|
||||
import { AntdButton } from 'src/components/';
|
||||
import { Button } from 'src/components/';
|
||||
import { findPermission } from 'src/utils/findPermission';
|
||||
import { Tooltip } from 'src/components/Tooltip';
|
||||
import { safeStringify } from 'src/utils/safeStringify';
|
||||
|
|
@ -138,7 +137,8 @@ const actionButtonsStyle = theme => css`
|
|||
}
|
||||
`;
|
||||
|
||||
const StyledUndoRedoButton = styled(AntdButton)`
|
||||
const StyledUndoRedoButton = styled(Button)`
|
||||
// TODO: check if we need this.
|
||||
padding: 0;
|
||||
&:hover {
|
||||
background: transparent;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
import { useState } from 'react';
|
||||
import { SupersetTheme, t } from '@superset-ui/core';
|
||||
import { AntdButton, AntdSelect } from 'src/components';
|
||||
import { Button, AntdSelect } from 'src/components';
|
||||
import InfoTooltip from 'src/components/InfoTooltip';
|
||||
import FormLabel from 'src/components/Form/FormLabel';
|
||||
import Icons from 'src/components/Icons';
|
||||
|
|
@ -142,14 +142,14 @@ export const EncryptedField = ({
|
|||
</div>
|
||||
|
||||
{!fileToUpload && (
|
||||
<AntdButton
|
||||
<Button
|
||||
className="input-upload-btn"
|
||||
onClick={() =>
|
||||
document?.getElementById('selectedFile')?.click()
|
||||
}
|
||||
>
|
||||
{t('Choose File')}
|
||||
</AntdButton>
|
||||
</Button>
|
||||
)}
|
||||
{fileToUpload && (
|
||||
<div className="input-upload-current">
|
||||
|
|
|
|||
Loading…
Reference in New Issue