fix: remote react-window fully (from List component) (#114)

* chore: pnpm i react-window

* Revert "chore: pnpm i react-window"

This reverts commit 2234d39dbb.

* fix: remote ref to react-window (for good)
This commit is contained in:
Dhruv
2024-02-28 00:05:13 -06:00
committed by doprz
parent b17c3fae6d
commit 5f1c0231e4

View File

@@ -1,7 +1,6 @@
import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd'; import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
import type { ReactElement } from 'react'; import type { ReactElement } from 'react';
import React, { useCallback, useState } from 'react'; import React, { useCallback, useState } from 'react';
import { areEqual } from 'react-window';
/* /*
* Ctrl + f dragHandleProps on PopupCourseBlock.tsx for example implementation of drag handle (two lines of code) * Ctrl + f dragHandleProps on PopupCourseBlock.tsx for example implementation of drag handle (two lines of code)
@@ -75,7 +74,7 @@ const Row: React.FC<RowProps> = React.memo(({ data: { items, gap }, index, style
{provided => <Item provided={provided} item={item} style={adjustedStyle} gap={gap} />} {provided => <Item provided={provided} item={item} style={adjustedStyle} gap={gap} />}
</Draggable> </Draggable>
); );
}, areEqual); });
/** /**
* `List` is a functional component that displays a course meeting. * `List` is a functional component that displays a course meeting.