This commit is contained in:
Steve Faulkner
2021-05-05 19:31:07 -05:00
parent 4299b86c55
commit 0e0e6a2257
3 changed files with 5 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ import { NotebookUtil } from "./Notebook/NotebookUtil";
import AddCollectionPane from "./Panes/AddCollectionPane"; import AddCollectionPane from "./Panes/AddCollectionPane";
import { AddCollectionPanel } from "./Panes/AddCollectionPanel"; import { AddCollectionPanel } from "./Panes/AddCollectionPanel";
import AddDatabasePane from "./Panes/AddDatabasePane"; import AddDatabasePane from "./Panes/AddDatabasePane";
import { AddDatabasePanelF } from "./Panes/AddDatabasePanel/AddDatabasePanel"; import { AddDatabasePanel } from "./Panes/AddDatabasePanel/AddDatabasePanel";
import { BrowseQueriesPane } from "./Panes/BrowseQueriesPane/BrowseQueriesPane"; import { BrowseQueriesPane } from "./Panes/BrowseQueriesPane/BrowseQueriesPane";
import CassandraAddCollectionPane from "./Panes/CassandraAddCollectionPane"; import CassandraAddCollectionPane from "./Panes/CassandraAddCollectionPane";
import { ContextualPaneBase } from "./Panes/ContextualPaneBase"; import { ContextualPaneBase } from "./Panes/ContextualPaneBase";
@@ -2047,7 +2047,7 @@ export default class Explorer {
} else { } else {
this.openSidePanel( this.openSidePanel(
"Add Database", "Add Database",
<AddDatabasePanelF <AddDatabasePanel
explorer={this} explorer={this}
openNotificationConsole={this.expandConsole} openNotificationConsole={this.expandConsole}
closePanel={this.closeSidePanel} closePanel={this.closeSidePanel}

View File

@@ -1,7 +1,7 @@
import { shallow } from "enzyme"; import { shallow } from "enzyme";
import React from "react"; import React from "react";
import Explorer from "../../Explorer"; import Explorer from "../../Explorer";
import { AddDatabasePanelF } from "./AddDatabasePanel"; import { AddDatabasePanel } from "./AddDatabasePanel";
const props = { const props = {
explorer: new Explorer(), explorer: new Explorer(),
@@ -11,7 +11,7 @@ const props = {
describe("AddDatabasePane Pane", () => { describe("AddDatabasePane Pane", () => {
it("should render Default properly", () => { it("should render Default properly", () => {
const wrapper = shallow(<AddDatabasePanelF {...props} />); const wrapper = shallow(<AddDatabasePanel {...props} />);
expect(wrapper).toMatchSnapshot(); expect(wrapper).toMatchSnapshot();
}); });
}); });

View File

@@ -24,7 +24,7 @@ export interface AddDatabasePaneProps {
openNotificationConsole: () => void; openNotificationConsole: () => void;
} }
export const AddDatabasePanelF: FunctionComponent<AddDatabasePaneProps> = ({ export const AddDatabasePanel: FunctionComponent<AddDatabasePaneProps> = ({
explorer: container, explorer: container,
closePanel, closePanel,
openNotificationConsole, openNotificationConsole,