From deb0d85af0b10f2724b35fdf0008a308ad0223d1 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 1 Oct 2020 07:43:29 +0300 Subject: [PATCH] fix: lint / linux build failed Signed-off-by: Roman --- .../cluster-manager/clusters-menu.tsx | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/src/renderer/components/cluster-manager/clusters-menu.tsx b/src/renderer/components/cluster-manager/clusters-menu.tsx index 11a7bc40f6..e9bfff6235 100644 --- a/src/renderer/components/cluster-manager/clusters-menu.tsx +++ b/src/renderer/components/cluster-manager/clusters-menu.tsx @@ -111,25 +111,24 @@ export class ClustersMenu extends React.Component { {({ innerRef, droppableProps, placeholder }: DroppableProvided) => (
{clusters.map((cluster, index) => { - const isActive = cluster.id === clusterStore.activeClusterId; - return ( - - {({ draggableProps, dragHandleProps, innerRef }: DraggableProvided) => ( -
- this.showCluster(cluster.id)} - onContextMenu={() => this.showContextMenu(cluster)} - /> -
- )} -
- ) - } - )} + const isActive = cluster.id === clusterStore.activeClusterId; + return ( + + {({ draggableProps, dragHandleProps, innerRef }: DraggableProvided) => ( +
+ this.showCluster(cluster.id)} + onContextMenu={() => this.showContextMenu(cluster)} + /> +
+ )} +
+ ) + })} {placeholder}
)}