diff --git a/src/views/components/common/List/List.tsx b/src/views/components/common/List/List.tsx index de4af788..ee9a2330 100644 --- a/src/views/components/common/List/List.tsx +++ b/src/views/components/common/List/List.tsx @@ -1,4 +1,4 @@ -import React, { useState, useCallback, ReactElement } from 'react'; +import React, { useState, ReactElement, useCallback } from 'react'; import { DragDropContext, Droppable, Draggable } from '@hello-pangea/dnd'; import { FixedSizeList, areEqual } from 'react-window'; @@ -12,8 +12,8 @@ import { FixedSizeList, areEqual } from 'react-window'; * Props for the List component. */ export interface ListProps { - draggableElements: any[]; // Will later define draggableElements based on what types - // of components are draggable. + draggableElements: any[]; // Will later define draggableElements based on what types + // of components are draggable. itemHeight: number; listHeight: number; listWidth: number; @@ -35,7 +35,7 @@ function reorder(list: { id: string, content: ReactElement }[], startIndex: numb return result; } -function getStyle({ provided, style, isDragging, gap }) { +function getStyle({ provided, style /* , isDragging, gap */ }) { const combined = { ...style, ...provided.draggableProps.style @@ -44,12 +44,12 @@ function getStyle({ provided, style, isDragging, gap }) { return combined; } -function Item({ provided, item, style, isDragging, gap }) { +function Item({ provided, item, style, isDragging/* , gap */ }) { return (