Convert StatusBarRegistration to use components field (#1598)

* Convert StatusBarRegistration to use components field

- More similar to all other *Registration types for extensions

- Simpler fix for using the components.Icon type, now accepts functions
  that return component instance like all other *Registration types

- Kept old fix for backwards compatability

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* fix docs

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-02-04 19:18:31 +02:00
1 parent a0e24e0a4d
commit 0727456aa1
7 files changed
+143 -79

No files matched your search

@@ -10,7 +10,7 @@ For example, I have a component `GlobalPageMenuIcon` and want to test if `props.
My component `GlobalPageMenuIcon`
```tsx
```typescript
import React from "react"
import { Component: { Icon } } from "@k8slens/extensions";
@@ -61,7 +61,7 @@ In the Renderer process, `console.log()` is printed in the Console in Developer
### Main Process Logs
Viewing the logs from the Main process is a little trickier, since they cannot be printed using Developer Tools.
Viewing the logs from the Main process is a little trickier, since they cannot be printed using Developer Tools.
#### macOS