Replaced eslint rule twenty/no-spread-props to react/jsx-props-no-spreading (#1976)

* Replaced eslint rule twenty/no-spread-props to react/jsx-props-no-spreading

* Disable props spread on external libraries

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Gaurav
2023-10-13 20:22:19 +05:30
committed by GitHub
parent d56c5fcbf6
commit acde034a1d
13 changed files with 38 additions and 157 deletions

View File

@ -26,7 +26,11 @@ export const DraggableList = ({
<StyledDragDropItemsWrapper>
<Droppable droppableId={v4Persistable}>
{(provided) => (
<div ref={provided.innerRef} {...provided.droppableProps}>
<div
ref={provided.innerRef}
// eslint-disable-next-line react/jsx-props-no-spreading
{...provided.droppableProps}
>
{draggableItems}
{provided.placeholder}
</div>