mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
9b9bf47970
commit
e9ebd06664
7 files changed
+31
-20
No files matched your search
@@ -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>
|
||||
)
|
||||
})
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user