diff --git a/src/Explorer/Panes/LoadQueryPane/LoadQueryPane.tsx b/src/Explorer/Panes/LoadQueryPane/LoadQueryPane.tsx
index 6a8fed727..d2079c010 100644
--- a/src/Explorer/Panes/LoadQueryPane/LoadQueryPane.tsx
+++ b/src/Explorer/Panes/LoadQueryPane/LoadQueryPane.tsx
@@ -37,7 +37,7 @@ export const LoadQueryPane: FunctionComponent
= ({
const title = "Load Query";
const genericPaneProps: GenericRightPaneProps = {
- container: explorer,
+ expandConsole: () => explorer.expandConsole(),
formError: formError,
formErrorDetail: formErrorsDetails,
id: "loadQueryPane",
diff --git a/src/Explorer/Panes/LoadQueryPane/__snapshots__/LoadQueryPane.test.tsx.snap b/src/Explorer/Panes/LoadQueryPane/__snapshots__/LoadQueryPane.test.tsx.snap
index ee672aa5c..badff47b7 100644
--- a/src/Explorer/Panes/LoadQueryPane/__snapshots__/LoadQueryPane.test.tsx.snap
+++ b/src/Explorer/Panes/LoadQueryPane/__snapshots__/LoadQueryPane.test.tsx.snap
@@ -2,7 +2,7 @@
exports[`Load Query Pane should render Default properly 1`] = `
=
};
const props: GenericRightPaneProps = {
- container: container,
formError: formError,
formErrorDetail: formErrorDetail,
id: "publishnotebookpane",
@@ -167,6 +166,7 @@ export const PublishNotebookPane: FunctionComponent =
submitButtonText: "Publish",
onSubmit: () => submit(),
onClose: closePanel,
+ expandConsole: () => container.expandConsole(),
isSubmitButtonHidden: !isCodeOfConductAccepted,
};
diff --git a/src/Explorer/Panes/SaveQueryPane/SaveQueryPane.tsx b/src/Explorer/Panes/SaveQueryPane/SaveQueryPane.tsx
index 949e9203f..652c58949 100644
--- a/src/Explorer/Panes/SaveQueryPane/SaveQueryPane.tsx
+++ b/src/Explorer/Panes/SaveQueryPane/SaveQueryPane.tsx
@@ -32,7 +32,7 @@ export const SaveQueryPane: FunctionComponent = ({
const title = "Save Query";
const { canSaveQueries } = explorer;
const genericPaneProps: GenericRightPaneProps = {
- container: explorer,
+ expandConsole: () => explorer.expandConsole(),
formError: formError,
formErrorDetail: formErrorsDetails,
id: "saveQueryPane",
diff --git a/src/Explorer/Panes/SaveQueryPane/__snapshots__/SaveQueryPane.test.tsx.snap b/src/Explorer/Panes/SaveQueryPane/__snapshots__/SaveQueryPane.test.tsx.snap
index b5ed7ed77..aba5e17b8 100644
--- a/src/Explorer/Panes/SaveQueryPane/__snapshots__/SaveQueryPane.test.tsx.snap
+++ b/src/Explorer/Panes/SaveQueryPane/__snapshots__/SaveQueryPane.test.tsx.snap
@@ -2,11 +2,7 @@
exports[`Save Query Pane should render Default properly 1`] = `
undefined,
closePanel: (): void => undefined,
};
describe("Settings Pane", () => {
diff --git a/src/Explorer/Panes/SettingsPane/SettingsPane.tsx b/src/Explorer/Panes/SettingsPane/SettingsPane.tsx
index 02dfdd614..480f358c5 100644
--- a/src/Explorer/Panes/SettingsPane/SettingsPane.tsx
+++ b/src/Explorer/Panes/SettingsPane/SettingsPane.tsx
@@ -7,19 +7,18 @@ import { LocalStorageUtility, StorageKey } from "../../../Shared/StorageUtility"
import * as StringUtility from "../../../Shared/StringUtility";
import { userContext } from "../../../UserContext";
import { logConsoleInfo } from "../../../Utils/NotificationConsoleUtils";
-import Explorer from "../../Explorer";
import {
GenericRightPaneComponent,
GenericRightPaneProps,
} from "../GenericRightPaneComponent/GenericRightPaneComponent";
export interface SettingsPaneProps {
- explorer: Explorer;
+ expandConsole: () => void;
closePanel: () => void;
}
export const SettingsPane: FunctionComponent = ({
- explorer: container,
+ expandConsole,
closePanel,
}: SettingsPaneProps) => {
const [formErrors, setFormErrors] = useState("");
@@ -107,7 +106,7 @@ export const SettingsPane: FunctionComponent = ({
};
const genericPaneProps: GenericRightPaneProps = {
- container,
+ expandConsole,
formError: formErrors,
formErrorDetail: "",
id: "settingspane",
diff --git a/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap b/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap
index 69f4ef1b7..c20b14595 100644
--- a/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap
+++ b/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap
@@ -2,504 +2,7 @@
exports[`Settings Pane should render Default properly 1`] = `
= ({
}
};
const genericPaneProps: GenericRightPaneProps = {
- container: container,
formError: formErrors,
formErrorDetail: formErrorsDetails,
id: "stringInputPane",
@@ -101,6 +100,7 @@ export const StringInputPane: FunctionComponent
= ({
submitButtonText: submitButtonLabel,
onClose: closePanel,
onSubmit: submit,
+ expandConsole: () => container.expandConsole(),
};
return (
diff --git a/src/Explorer/Panes/StringInputPane/__snapshots__/StringInputPane.test.tsx.snap b/src/Explorer/Panes/StringInputPane/__snapshots__/StringInputPane.test.tsx.snap
index fbdc9fc80..7fd573d15 100644
--- a/src/Explorer/Panes/StringInputPane/__snapshots__/StringInputPane.test.tsx.snap
+++ b/src/Explorer/Panes/StringInputPane/__snapshots__/StringInputPane.test.tsx.snap
@@ -519,504 +519,7 @@ exports[`StringInput Pane should render Create new directory properly 1`] = `
successMessage="Created directory "
>
(true);
const genericPaneProps: GenericRightPaneProps = {
- container: explorer,
formError: "",
formErrorDetail: "",
id: "querySelectPane",
@@ -41,6 +40,7 @@ export const TableQuerySelectPanel: FunctionComponent closePanel(),
onSubmit: () => submit(),
+ expandConsole: () => explorer.expandConsole(),
};
const submit = (): void => {
diff --git a/src/Explorer/Panes/UploadFilePane/UploadFilePane.tsx b/src/Explorer/Panes/UploadFilePane/UploadFilePane.tsx
index 70b66baea..d65301610 100644
--- a/src/Explorer/Panes/UploadFilePane/UploadFilePane.tsx
+++ b/src/Explorer/Panes/UploadFilePane/UploadFilePane.tsx
@@ -1,7 +1,6 @@
import React, { ChangeEvent, FunctionComponent, useState } from "react";
import { Upload } from "../../../Common/Upload/Upload";
import { logConsoleError, logConsoleInfo, logConsoleProgress } from "../../../Utils/NotificationConsoleUtils";
-import Explorer from "../../Explorer";
import { NotebookContentItem } from "../../Notebook/NotebookContentItem";
import {
GenericRightPaneComponent,
@@ -9,13 +8,13 @@ import {
} from "../GenericRightPaneComponent/GenericRightPaneComponent";
export interface UploadFilePanelProps {
- explorer: Explorer;
+ expandConsole: () => void;
closePanel: () => void;
uploadFile: (name: string, content: string) => Promise;
}
export const UploadFilePane: FunctionComponent = ({
- explorer: container,
+ expandConsole,
closePanel,
uploadFile,
}: UploadFilePanelProps) => {
@@ -93,7 +92,7 @@ export const UploadFilePane: FunctionComponent = ({
};
const genericPaneProps: GenericRightPaneProps = {
- container: container,
+ expandConsole,
formError: formErrors,
formErrorDetail: formErrorsDetails,
id: "uploadFilePane",
diff --git a/src/Explorer/Panes/UploadItemsPane/UploadItemsPane.tsx b/src/Explorer/Panes/UploadItemsPane/UploadItemsPane.tsx
index c2836ba3c..31448612f 100644
--- a/src/Explorer/Panes/UploadItemsPane/UploadItemsPane.tsx
+++ b/src/Explorer/Panes/UploadItemsPane/UploadItemsPane.tsx
@@ -71,7 +71,7 @@ export const UploadItemsPane: FunctionComponent = ({
};
const genericPaneProps: GenericRightPaneProps = {
- container: explorer,
+ expandConsole: () => explorer.expandConsole(),
formError,
formErrorDetail,
id: "uploaditemspane",
diff --git a/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap b/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap
index fc59040bf..c13f7f4ae 100644
--- a/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap
+++ b/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap
@@ -2,504 +2,7 @@
exports[`Upload Items Pane should render Default properly 1`] = `