Some panel use GenenricRightPanel and Some panel use RightPanelForm

This commit is contained in:
hardiknai-techm
2021-04-16 15:53:44 +05:30
parent 9494c9cd55
commit e17fe25292
14 changed files with 184 additions and 49 deletions

View File

@@ -12,7 +12,7 @@ import Explorer from "../Explorer";
import { NotebookContentItem, NotebookContentItemType } from "../Notebook/NotebookContentItem";
import { ResourceTreeAdapter } from "../Tree/ResourceTreeAdapter";
import { CopyNotebookPaneComponent, CopyNotebookPaneProps } from "./CopyNotebookPaneComponent";
import { RightPaneWrapper, RightPaneWrapperProps } from "./RightPaneWrapper/RightPaneWrapper";
import { RightPaneForm, RightPaneFormProps } from "./RightPaneForm/RightPaneForm";
interface Location {
type: "MyNotebooks" | "GitHub";
@@ -51,7 +51,7 @@ export class CopyNotebookPaneAdapter implements ReactAdapter {
return undefined;
}
const genericPaneProps: RightPaneWrapperProps = {
const genericPaneProps: RightPaneFormProps = {
container: this.container,
formError: this.formError,
formErrorDetail: this.formErrorDetail,
@@ -70,9 +70,9 @@ export class CopyNotebookPaneAdapter implements ReactAdapter {
};
return (
<RightPaneWrapper {...genericPaneProps}>
<RightPaneForm {...genericPaneProps}>
<CopyNotebookPaneComponent {...copyNotebookPaneProps} />
</RightPaneWrapper>
</RightPaneForm>
);
}