mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
PageRegistration & PageMenuRegistration fixes & more simplification, fix #1383
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
f98d11a0be
commit
d45a289b4f
11 files changed
+138
-85
No files matched your search
@@ -6,7 +6,7 @@ export default class SupportPageMainExtension extends LensMainExtension {
|
||||
parentId: "help",
|
||||
label: "Support",
|
||||
click: () => {
|
||||
this.navigate("/support");
|
||||
this.navigate();
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -5,8 +5,6 @@ import { SupportPage } from "./src/support";
|
||||
export default class SupportPageRendererExtension extends LensRendererExtension {
|
||||
globalPages: Interface.PageRegistration[] = [
|
||||
{
|
||||
id: "support",
|
||||
routePath: "/support",
|
||||
components: {
|
||||
Page: SupportPage,
|
||||
}
|
||||
@@ -16,7 +14,7 @@ export default class SupportPageRendererExtension extends LensRendererExtension
|
||||
statusBarItems: Interface.StatusBarRegistration[] = [
|
||||
{
|
||||
item: (
|
||||
<div className="SupportPageIcon flex align-center" onClick={() => this.navigate("/support")}>
|
||||
<div className="SupportPageIcon flex align-center" onClick={() => this.navigate()}>
|
||||
<Component.Icon interactive material="help" smallest/>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user