diff --git a/src/renderer/components/layout/page-layout.tsx b/src/renderer/components/layout/page-layout.tsx index b437a53d56..99d0ef3711 100644 --- a/src/renderer/components/layout/page-layout.tsx +++ b/src/renderer/components/layout/page-layout.tsx @@ -3,19 +3,17 @@ import "./page-layout.scss"; import React from "react"; import { observer } from "mobx-react"; import { autobind, cssNames, IClassName } from "../../utils"; -import { Icon } from "../icon"; import { navigation } from "../../navigation"; -import { NavigationTree, RecursiveTreeView } from "../tree-view"; export interface PageLayoutProps extends React.DOMAttributes { className?: IClassName; - header: React.ReactNode; + header?: React.ReactNode; headerClass?: IClassName; contentClass?: IClassName; provideBackButtonNavigation?: boolean; contentGaps?: boolean; showOnTop?: boolean; // covers whole app view - navigation?: NavigationTree[]; + navigation?: React.ReactNode; back?: (evt: React.MouseEvent | KeyboardEvent) => void; } @@ -58,29 +56,21 @@ export class PageLayout extends React.Component { render() { const { - contentClass, header, headerClass, provideBackButtonNavigation, + contentClass, headerClass, provideBackButtonNavigation, contentGaps, showOnTop, navigation, children, ...elemProps } = this.props; const className = cssNames("PageLayout", { showOnTop, showNavigation: navigation }, this.props.className); return (
-
- {header} - {provideBackButtonNavigation && ( - - )} -
{ navigation && ( -