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 = [
|
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>
|
||||||
@ -259,7 +259,7 @@ import { CustomWorkloadsOverviewItem } from "./src/custom-workloads-overview-ite
|
|||||||
export default class ExampleExtension extends Renderer.LensExtension {
|
export default class ExampleExtension extends Renderer.LensExtension {
|
||||||
kubeWorkloadsOverviewItems = [
|
kubeWorkloadsOverviewItems = [
|
||||||
{
|
{
|
||||||
components : {
|
components: {
|
||||||
Details: () => <CustomWorkloadsOverviewItem />
|
Details: () => <CustomWorkloadsOverviewItem />
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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")}
|
||||||
|
|||||||
@ -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} />
|
||||||
);
|
)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user