This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch and-import-cleanup
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/and-import-cleanup by this
push:
new 9d57c32994 Initial changes
9d57c32994 is described below
commit 9d57c329942a57f046c925b867e00c7868b1f4a6
Author: Evan Rusackas <[email protected]>
AuthorDate: Wed Jul 10 09:33:55 2024 -0600
Initial changes
---
superset-frontend/src/components/Button/index.tsx | 2 +-
superset-frontend/src/dashboard/components/Header/index.jsx | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/superset-frontend/src/components/Button/index.tsx
b/superset-frontend/src/components/Button/index.tsx
index 86b52afb02..60319c3e84 100644
--- a/superset-frontend/src/components/Button/index.tsx
+++ b/superset-frontend/src/components/Button/index.tsx
@@ -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';
diff --git a/superset-frontend/src/dashboard/components/Header/index.jsx
b/superset-frontend/src/dashboard/components/Header/index.jsx
index d9f5dbd6d0..a46f52811f 100644
--- a/superset-frontend/src/dashboard/components/Header/index.jsx
+++ b/superset-frontend/src/dashboard/components/Header/index.jsx
@@ -36,7 +36,7 @@ import {
} 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 +138,8 @@ const actionButtonsStyle = theme => css`
}
`;
-const StyledUndoRedoButton = styled(AntdButton)`
+const StyledUndoRedoButton = styled(Button)`
+ // TODO: check if we need this.
padding: 0;
&:hover {
background: transparent;