mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
ffcc725123
commit
0fba1dab47
@ -89,7 +89,7 @@ class NonInjectedHotbarMenu extends React.Component<Dependencies & HotbarMenuPro
|
|||||||
hotbar.addToHotbar(entity, index);
|
hotbar.addToHotbar(entity, index);
|
||||||
};
|
};
|
||||||
|
|
||||||
getMoveAwayDirection(entityId: string | undefined, cellIndex: number) {
|
getMoveAwayDirection(entityId: string | undefined | null, cellIndex: number) {
|
||||||
if (!entityId) {
|
if (!entityId) {
|
||||||
return "animateDown";
|
return "animateDown";
|
||||||
}
|
}
|
||||||
@ -110,10 +110,13 @@ class NonInjectedHotbarMenu extends React.Component<Dependencies & HotbarMenuPro
|
|||||||
index={index}
|
index={index}
|
||||||
key={entity ? entity.getId() : `cell${index}`}
|
key={entity ? entity.getId() : `cell${index}`}
|
||||||
innerRef={provided.innerRef}
|
innerRef={provided.innerRef}
|
||||||
className={cssNames({
|
className={cssNames(
|
||||||
isDraggingOver: snapshot.isDraggingOver,
|
{
|
||||||
isDraggingOwner: snapshot.draggingOverWith == entity?.getId(),
|
isDraggingOver: snapshot.isDraggingOver,
|
||||||
}, this.getMoveAwayDirection(snapshot.draggingOverWith, index))}
|
isDraggingOwner: snapshot.draggingOverWith == entity?.getId(),
|
||||||
|
},
|
||||||
|
this.getMoveAwayDirection(snapshot.draggingOverWith, index),
|
||||||
|
)}
|
||||||
{...provided.droppableProps}
|
{...provided.droppableProps}
|
||||||
>
|
>
|
||||||
{item && (
|
{item && (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user