diff --git a/src/renderer/components/app.tsx b/src/renderer/components/app.tsx index f5ad684595..a450cccd94 100755 --- a/src/renderer/components/app.tsx +++ b/src/renderer/components/app.tsx @@ -50,6 +50,8 @@ import { ReplicaSetScaleDialog } from "./+workloads-replicasets/replicaset-scale import { CommandContainer } from "./command-palette/command-container"; import { KubeObjectStore } from "../kube-object.store"; import { clusterContext } from "./context"; +import { CacheProvider } from "@emotion/react"; +import createCache from "@emotion/cache"; @observer export class App extends React.Component { @@ -153,37 +155,39 @@ export class App extends React.Component { render() { return ( - - - - - - - - - - - - - - - {this.renderExtensionTabLayoutRoutes()} - {this.renderExtensionRoutes()} - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + {this.renderExtensionTabLayoutRoutes()} + {this.renderExtensionRoutes()} + + + + + + + + + + + + + + + + ); } diff --git a/src/renderer/components/layout/main-layout.tsx b/src/renderer/components/layout/main-layout.tsx index 1f96b40643..c772582e8f 100755 --- a/src/renderer/components/layout/main-layout.tsx +++ b/src/renderer/components/layout/main-layout.tsx @@ -10,8 +10,6 @@ import { ResizeDirection, ResizeGrowthDirection, ResizeSide, ResizingAnchor } fr import { MainLayoutHeader } from "./main-layout-header"; import { Sidebar } from "./sidebar"; import { sidebarStorage } from "./sidebar-storage"; -import { CacheProvider } from "@emotion/react"; -import createCache from "@emotion/cache"; export interface MainLayoutProps { className?: any; @@ -62,11 +60,9 @@ export class MainLayout extends React.Component { /> - -
- {children} -
-
+
+ {children} +
diff --git a/src/renderer/components/layout/page-layout.tsx b/src/renderer/components/layout/page-layout.tsx index 1de530b1c0..b437a53d56 100644 --- a/src/renderer/components/layout/page-layout.tsx +++ b/src/renderer/components/layout/page-layout.tsx @@ -6,8 +6,6 @@ import { autobind, cssNames, IClassName } from "../../utils"; import { Icon } from "../icon"; import { navigation } from "../../navigation"; import { NavigationTree, RecursiveTreeView } from "../tree-view"; -import { CacheProvider } from "@emotion/react"; -import createCache from "@emotion/cache"; export interface PageLayoutProps extends React.DOMAttributes { className?: IClassName; @@ -82,13 +80,11 @@ export class PageLayout extends React.Component { )} - -
-
- {children} -
+
+
+ {children}
- +
); } diff --git a/src/renderer/lens-app.tsx b/src/renderer/lens-app.tsx index f5384b77f1..74aff3781a 100644 --- a/src/renderer/lens-app.tsx +++ b/src/renderer/lens-app.tsx @@ -15,6 +15,8 @@ import { CommandContainer } from "./components/command-palette/command-container import { LensProtocolRouterRenderer, bindProtocolAddRouteHandlers } from "./protocol-handler"; import { registerIpcHandlers } from "./ipc"; import { ipcRenderer } from "electron"; +import { CacheProvider } from "@emotion/react"; +import createCache from "@emotion/cache"; @observer export class LensApp extends React.Component { @@ -36,16 +38,18 @@ export class LensApp extends React.Component { render() { return ( - - - {userStore.isNewVersion && } - - - - - - - + + + + {userStore.isNewVersion && } + + + + + + + + ); }