Allowing any item for StatusBarRegistration (#1143)

* Adding extension's label text next to Icon

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing unused registerStatusBarItem()

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev authored and GitHub committed 2020-10-26 17:29:54 +03:00
1 parent 9b9bf47970
commit e9ebd06664
7 files changed
+31 -20

No files matched your search

+8 -6
View File
@@ -21,15 +21,17 @@ export default class SupportPageRendererExtension extends LensRendererExtension
)
}
registerStatusBarIcon(registry: Registry.StatusBarRegistry) {
registerStatusBarItem(registry: Registry.StatusBarRegistry) {
this.disposers.push(
registry.add({
icon: (
<Component.Icon
material="support"
tooltip="Support"
item: (
<div
className="flex align-center gaps hover-highlight"
onClick={() => Navigation.navigate(supportPageURL())}
/>
>
<Component.Icon material="help_outline" small />
<span>Support</span>
</div>
)
})
)