From 5f1c0231e483bc571ef944bbc0b950ab20d31028 Mon Sep 17 00:00:00 2001 From: Dhruv Date: Wed, 28 Feb 2024 00:05:13 -0600 Subject: [PATCH] fix: remote react-window fully (from List component) (#114) * chore: pnpm i react-window * Revert "chore: pnpm i react-window" This reverts commit 2234d39dbbb55cd2333077863aef7e0aa848d300. * fix: remote ref to react-window (for good) --- src/views/components/common/List/List.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/components/common/List/List.tsx b/src/views/components/common/List/List.tsx index 61275fac..c6bce810 100644 --- a/src/views/components/common/List/List.tsx +++ b/src/views/components/common/List/List.tsx @@ -1,7 +1,6 @@ import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd'; import type { ReactElement } 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) @@ -75,7 +74,7 @@ const Row: React.FC = React.memo(({ data: { items, gap }, index, style {provided => } ); -}, areEqual); +}); /** * `List` is a functional component that displays a course meeting.