1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

expose MainLayout to extensions (#3125)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-06-21 15:26:17 +03:00 committed by GitHub
parent 723ba1df37
commit a21ede72c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,7 @@
*/ */
// layouts // layouts
export * from "../../renderer/components/layout/main-layout";
export * from "../../renderer/components/layout/setting-layout"; export * from "../../renderer/components/layout/setting-layout";
export * from "../../renderer/components/layout/page-layout"; export * from "../../renderer/components/layout/page-layout";
export * from "../../renderer/components/layout/wizard-layout"; export * from "../../renderer/components/layout/wizard-layout";

View File

@ -34,6 +34,11 @@ interface Props {
footer?: React.ReactNode; 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 @observer
export class MainLayout extends React.Component<Props> { export class MainLayout extends React.Component<Props> {
onSidebarResize = (width: number) => { onSidebarResize = (width: number) => {