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:
parent
0f2801552f
commit
994208b25a
@ -207,7 +207,7 @@ export default class ExampleExtension extends Renderer.LensExtension {
|
||||
topBarItems = [
|
||||
{
|
||||
components: {
|
||||
Item: (
|
||||
Item: () => (
|
||||
<Icon material="favorite" onClick={() => this.navigate("/example-page" />
|
||||
)
|
||||
}
|
||||
@ -235,7 +235,7 @@ export default class ExampleExtension extends Renderer.LensExtension {
|
||||
statusBarItems = [
|
||||
{
|
||||
components: {
|
||||
Item: (
|
||||
Item: () => (
|
||||
<div className="flex align-center gaps hover-highlight" onClick={() => this.navigate("/example-page")} >
|
||||
<Icon material="favorite" />
|
||||
</div>
|
||||
|
||||
@ -478,7 +478,7 @@ export default class HelpExtension extends Renderer.LensExtension {
|
||||
statusBarItems = [
|
||||
{
|
||||
components: {
|
||||
Item: (
|
||||
Item: () => (
|
||||
<div
|
||||
className="flex align-center gaps"
|
||||
onClick={() => this.navigate("help")}
|
||||
|
||||
@ -208,11 +208,9 @@ export default class ExampleExtension extends Renderer.LensExtension {
|
||||
title: "Example Cluster Feature",
|
||||
priority: 5,
|
||||
components: {
|
||||
View: ({ entity = null }: { entity: Common.Catalog.KubernetesCluster}) => {
|
||||
return (
|
||||
View: ({ entity = null }: { entity: Common.Catalog.KubernetesCluster}) => (
|
||||
<ExampleClusterFeatureSettings cluster={entity} />
|
||||
);
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user