Fix documentation around components examples (#4375)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-17 17:06:29 -05:00
1 parent 0f2801552f
commit 994208b25a
3 files changed
+5 -7

No files matched your search

@@ -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>
+1 -1
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")}
+2 -4
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} />
); )
}
} }
} }
]; ];