Skip to content

Commit

Permalink
no await
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 10, 2025
1 parent 2f2f38f commit a879aaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t, useTheme, styled } from '@superset-ui/core';
import { t, styled } from '@superset-ui/core';
import Icons from 'src/components/Icons';
import { DropdownButton } from 'src/components/DropdownButton';
import Button from 'src/components/Button';
Expand All @@ -28,18 +28,16 @@ interface SaveDatasetActionButtonProps {

const StyledDropdownButton = styled(DropdownButton)`
button {
font-size: ${({ theme }) => theme.fontSizeSM}px !important;
font-size: ${({ theme }) => theme.fontSizeSM}px;
font-weight: ${({ theme }) => theme.fontWeightStrong};
}
`;

const SaveDatasetActionButton = ({
setShowSave,
overlayMenu,
}: SaveDatasetActionButtonProps) => {
const theme = useTheme();

return !overlayMenu ? (
}: SaveDatasetActionButtonProps) =>
!overlayMenu ? (
<Button
onClick={() => setShowSave(true)}
buttonStyle="secondary"
Expand All @@ -57,6 +55,5 @@ const SaveDatasetActionButton = ({
{t('Save')}
</StyledDropdownButton>
);
};

export default SaveDatasetActionButton;
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ describe('DatabaseModal', () => {

// ---------- Components ----------
// <TabHeader> - AntD header
const closeButton = await screen.getByRole('button', { name: 'close' });
const closeButton = screen.getByRole('button', { name: 'close' });

const basicHeader = screen.getByRole('heading', {
name: /connect a database/i,
Expand Down

0 comments on commit a879aaf

Please sign in to comment.