expose MainLayout to extensions (#3125)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-06-21 15:26:17 +03:00
1 parent 723ba1df37
commit a21ede72c8
2 files changed
+6

No files matched your search

@@ -20,6 +20,7 @@
*/
// layouts
export * from "../../renderer/components/layout/main-layout";
export * from "../../renderer/components/layout/setting-layout";
export * from "../../renderer/components/layout/page-layout";
export * from "../../renderer/components/layout/wizard-layout";
@@ -34,6 +34,11 @@ interface Props {
footer?: React.ReactNode;
}
/**
* Main layout is commonly used as a wrapper for "global pages"
*
* @link https://api-docs.k8slens.dev/master/extensions/capabilities/common-capabilities/#global-pages
*/
@observer
export class MainLayout extends React.Component<Props> {
onSidebarResize = (width: number) => {