1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Using different Ids for HotbarIcons (#3186)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-06-25 16:38:15 +03:00 committed by GitHub
parent 867cd5ac1f
commit b9dfd20a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ export class Catalog extends React.Component<Props> {
renderIcon(item: CatalogEntityItem<CatalogEntity>) { renderIcon(item: CatalogEntityItem<CatalogEntity>) {
return ( return (
<HotbarIcon <HotbarIcon
uid={item.getId()} uid={`catalog-icon-${item.getId()}`}
title={item.getName()} title={item.getName()}
source={item.source} source={item.source}
src={item.entity.spec.icon?.src} src={item.entity.spec.icon?.src}

View File

@ -160,7 +160,7 @@ export class HotbarMenu extends React.Component<Props> {
/> />
) : ( ) : (
<HotbarIcon <HotbarIcon
uid={item.entity.uid} uid={`hotbar-icon-${item.entity.uid}`}
title={item.entity.name} title={item.entity.name}
source={item.entity.source} source={item.entity.source}
menuItems={disabledMenuItems} menuItems={disabledMenuItems}