diff --git a/src/renderer/components/item-list/item-list-detail/item-list-detail.module.css b/src/renderer/components/item-list/item-detail-list/item-detail-list.module.css similarity index 100% rename from src/renderer/components/item-list/item-list-detail/item-list-detail.module.css rename to src/renderer/components/item-list/item-detail-list/item-detail-list.module.css diff --git a/src/renderer/components/item-list/item-list-detail/item-list-detail.tsx b/src/renderer/components/item-list/item-detail-list/item-detail-list.tsx similarity index 96% rename from src/renderer/components/item-list/item-list-detail/item-list-detail.tsx rename to src/renderer/components/item-list/item-detail-list/item-detail-list.tsx index 0794bfd1c..5a1711010 100644 --- a/src/renderer/components/item-list/item-list-detail/item-list-detail.tsx +++ b/src/renderer/components/item-list/item-detail-list/item-detail-list.tsx @@ -15,17 +15,14 @@ import { } from 'react'; import { List, ListImperativeAPI, RowComponentProps, useListRef } from 'react-window-v2'; -import styles from './item-list-detail.module.css'; +import styles from './item-detail-list.module.css'; import { ItemDetail } from '/@/renderer/components/item-detail/item-detail'; import { ExpandedListItem } from '/@/renderer/components/item-list/expanded-list-item'; -import { - ItemListStateActions, - useItemListState, -} from '/@/renderer/components/item-list/helpers/item-list-state'; +import { useItemListState } from '/@/renderer/components/item-list/helpers/item-list-state'; import { LibraryItem } from '/@/shared/types/domain-types'; -export interface ItemGridProps { +export interface ItemDetailListProps { data: unknown[]; enableExpansion?: boolean; enableSelection?: boolean; @@ -64,7 +61,7 @@ const expandedAnimationVariants: Variants = { }, }; -export const ItemListDetail = ({ +export const ItemDetailList = ({ data, enableExpansion = false, enableSelection = false, @@ -79,7 +76,7 @@ export const ItemListDetail = ({ onScrollEnd, onStartReached, totalItemCount = 0, -}: ItemGridProps) => { +}: ItemDetailListProps) => { const itemDetailRef = useListRef(null); const scrollContainerRef = useRef(null); const { ref: containerRef, width: containerWidth } = useElementSize(); diff --git a/src/renderer/components/item-list/item-grid/item-grid.module.css b/src/renderer/components/item-list/item-grid-list/item-grid-list.module.css similarity index 100% rename from src/renderer/components/item-list/item-grid/item-grid.module.css rename to src/renderer/components/item-list/item-grid-list/item-grid-list.module.css diff --git a/src/renderer/components/item-list/item-grid/item-grid.tsx b/src/renderer/components/item-list/item-grid-list/item-grid-list.tsx similarity index 98% rename from src/renderer/components/item-list/item-grid/item-grid.tsx rename to src/renderer/components/item-list/item-grid-list/item-grid-list.tsx index 37c4a68b5..9ddde325b 100644 --- a/src/renderer/components/item-list/item-grid/item-grid.tsx +++ b/src/renderer/components/item-list/item-grid-list/item-grid-list.tsx @@ -16,7 +16,7 @@ import { } from 'react'; import { List, ListImperativeAPI, RowComponentProps, useListRef } from 'react-window-v2'; -import styles from './item-grid.module.css'; +import styles from './item-grid-list.module.css'; import { getDataRowsCount, ItemCard } from '/@/renderer/components/item-card/item-card'; import { ExpandedListItem } from '/@/renderer/components/item-list/expanded-list-item'; @@ -26,7 +26,7 @@ import { } from '/@/renderer/components/item-list/helpers/item-list-state'; import { LibraryItem } from '/@/shared/types/domain-types'; -export interface ItemGridProps { +export interface ItemGridListProps { data: unknown[]; enableExpansion?: boolean; enableSelection?: boolean; @@ -75,7 +75,7 @@ const expandedAnimationVariants: Variants = { }, }; -export const ItemGrid = ({ +export const ItemGridList = ({ data, enableExpansion = false, enableSelection = false, @@ -90,7 +90,7 @@ export const ItemGrid = ({ onScrollEnd, onStartReached, totalItemCount = 0, -}: ItemGridProps) => { +}: ItemGridListProps) => { const itemGridRef = useListRef(null); const scrollContainerRef = useRef(null); const { ref: containerRef, width: containerWidth } = useElementSize(); diff --git a/src/renderer/features/albums/components/album-list-infinite-grid.tsx b/src/renderer/features/albums/components/album-list-infinite-grid.tsx index f19364e78..0b86c6cf1 100644 --- a/src/renderer/features/albums/components/album-list-infinite-grid.tsx +++ b/src/renderer/features/albums/components/album-list-infinite-grid.tsx @@ -6,7 +6,7 @@ import { InfiniteListProps, useItemListInfiniteLoader, } from '/@/renderer/components/item-list/helpers/item-list-infinite-loader'; -import { ItemGrid } from '/@/renderer/components/item-list/item-grid/item-grid'; +import { ItemGridList } from '/@/renderer/components/item-list/item-grid-list/item-grid-list'; import { albumQueries } from '/@/renderer/features/albums/api/album-api'; import { AlbumListQuery, @@ -44,7 +44,7 @@ export const AlbumListInfiniteGrid = forwardRef }); return ( - - + ); },