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

Fix documentation around components examples (#4375)

This commit is contained in:
Sebastian Malton 2021-11-17 17:06:29 -05:00 committed by GitHub
parent 0f2801552f
commit 994208b25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 27 deletions

View File

@ -207,7 +207,7 @@ export default class ExampleExtension extends Renderer.LensExtension {
topBarItems = [ topBarItems = [
{ {
components: { components: {
Item: ( Item: () => (
<Icon material="favorite" onClick={() => this.navigate("/example-page" /> <Icon material="favorite" onClick={() => this.navigate("/example-page" />
) )
} }
@ -235,7 +235,7 @@ export default class ExampleExtension extends Renderer.LensExtension {
statusBarItems = [ statusBarItems = [
{ {
components: { components: {
Item: ( Item: () => (
<div className="flex align-center gaps hover-highlight" onClick={() => this.navigate("/example-page")} > <div className="flex align-center gaps hover-highlight" onClick={() => this.navigate("/example-page")} >
<Icon material="favorite" /> <Icon material="favorite" />
</div> </div>

View File

@ -478,7 +478,7 @@ export default class HelpExtension extends Renderer.LensExtension {
statusBarItems = [ statusBarItems = [
{ {
components: { components: {
Item: ( Item: () => (
<div <div
className="flex align-center gaps" className="flex align-center gaps"
onClick={() => this.navigate("help")} onClick={() => this.navigate("help")}

View File

@ -208,11 +208,9 @@ export default class ExampleExtension extends Renderer.LensExtension {
title: "Example Cluster Feature", title: "Example Cluster Feature",
priority: 5, priority: 5,
components: { components: {
View: ({ entity = null }: { entity: Common.Catalog.KubernetesCluster}) => { View: ({ entity = null }: { entity: Common.Catalog.KubernetesCluster}) => (
return (
<ExampleClusterFeatureSettings cluster={entity} /> <ExampleClusterFeatureSettings cluster={entity} />
); )
}
} }
} }
]; ];