mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
feat: update delete modal for dataset (#10258)
* update delete modal for dataset * update datasetList to use hooks * fix typo on dataset delete modal
This commit is contained in:
@@ -18,8 +18,10 @@
|
||||
*/
|
||||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import { Modal, Button } from 'react-bootstrap';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import { supersetTheme, ThemeProvider } from '@superset-ui/style';
|
||||
import ConfirmStatusChange from 'src/components/ConfirmStatusChange';
|
||||
import Modal from 'src/components/Modal';
|
||||
|
||||
describe('ConfirmStatusChange', () => {
|
||||
const mockedProps = {
|
||||
@@ -35,6 +37,10 @@ describe('ConfirmStatusChange', () => {
|
||||
</>
|
||||
)}
|
||||
</ConfirmStatusChange>,
|
||||
{
|
||||
wrappingComponent: ThemeProvider,
|
||||
wrappingComponentProps: { theme: supersetTheme },
|
||||
},
|
||||
);
|
||||
|
||||
it('opens a confirm modal', () => {
|
||||
|
||||
Reference in New Issue
Block a user