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:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user