[feature-107] progress on the modal for creating and editing playlists

This commit is contained in:
MathieuG-P
2024-06-16 21:13:54 +02:00
parent b1ee9f054d
commit 5e1a021c3a
7 changed files with 297 additions and 101 deletions
@@ -14,7 +14,7 @@ export type VirtualScrollClassNames = {
rows?: string;
}
type ScrollEndHandler = {
export type VirtualScrollEndHandler = {
onScrollEnd: () => void;
margin?: number;
}
@@ -29,7 +29,7 @@ type Props<T = unknown> = {
items: T[];
renderItem: (item: T) => JSX.Element;
rowKey?: (rowItems: T[]) => Key;
scrollEnd?: ScrollEndHandler;
scrollEnd?: VirtualScrollEndHandler;
}
export function VirtualScroll<T = unknown>({ className, classNames, minItemWidth, maxColumns, minColumns, itemHeight, items, scrollEnd, renderItem, rowKey}: Props<T>) {