Skip to content

Commit

Permalink
fix: remote react-window fully (from List component) (#114)
Browse files Browse the repository at this point in the history
* chore: pnpm i react-window

* Revert "chore: pnpm i react-window"

This reverts commit 2234d39.

* fix: remote ref to react-window (for good)
  • Loading branch information
DhruvArora-03 authored and doprz committed Mar 6, 2024
1 parent b17c3fa commit 5f1c023
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/views/components/common/List/List.tsx
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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} />}
</Draggable>
);
}, areEqual);
});

/**
* `List` is a functional component that displays a course meeting.
Expand Down

0 comments on commit 5f1c023

Please sign in to comment.