Skip to content

Commit

Permalink
rm test code + unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
riahk committed Aug 27, 2020
1 parent dc9f701 commit e4874ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import { styledMount as mount } from 'spec/helpers/theming';

import DatabaseModal from 'src/views/CRUD/data/database/DatabaseModal';
import Modal from 'src/common/components/Modal';
// import Tabs from 'src/common/components/Tabs';
// import BaseTabs from 'src/common/components';

// store needed for withToasts(DatabaseModal)
const mockStore = configureStore([thunk]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ function DatabaseList({ addDangerToast, addSuccessToast }: DatabaseListProps) {
...commonMenuData,
};

const testDB = {
id: 10,
name: 'test',
uri: 'test/test/',
};

if (canCreate) {
menuData.primaryButton = {
name: (
Expand All @@ -85,7 +79,7 @@ function DatabaseList({ addDangerToast, addSuccessToast }: DatabaseListProps) {
),
onClick: () => {
// Ensure modal will be opened in add mode
setCurrentDatabase(testDB);
setCurrentDatabase(null);
setDatabaseModalOpen(true);
},
};
Expand Down

0 comments on commit e4874ae

Please sign in to comment.