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:
Lily Kuang
2020-07-10 14:23:17 -07:00
committed by GitHub
parent 4d179622fa
commit 80b06f6827
7 changed files with 448 additions and 357 deletions

View File

@@ -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', () => {