diff --git a/src/features/Artists/Artists.tsx b/src/features/Artists/Artists.tsx index f13c24c..8735148 100644 --- a/src/features/Artists/Artists.tsx +++ b/src/features/Artists/Artists.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; -import { IonSearchbar, IonModal, IonHeader, IonToolbar, IonTitle, IonButton, IonIcon, IonContent } from '@ionic/react'; +import { IonSearchbar, IonModal, IonHeader, IonToolbar, IonTitle, IonButton, IonIcon, IonContent, IonItem } from '@ionic/react'; import { close, list } from 'ionicons/icons'; -import { InfiniteScrollList, SongItem, ListItem } from '../../components/common'; +import { InfiniteScrollList, SongItem, ListItem, NumberDisplay } from '../../components/common'; import { useArtists } from '../../hooks'; import { useAppSelector } from '../../redux'; import { selectSongs } from '../../redux'; @@ -81,8 +81,6 @@ const Artists: React.FC = () => { @@ -94,16 +92,59 @@ const Artists: React.FC = () => { -
- {selectedArtistSongs.map((song) => ( - handleAddToQueue(song)} - onToggleFavorite={() => handleToggleFavorite(song)} - /> - ))} +
+ {}} + renderItem={(song, index) => ( + + {/* Number */} +
+ +
+ + {/* Song Item Content - placed directly after NumberDisplay like in ListItem */} +
+
+ handleAddToQueue(song)} + onToggleFavorite={() => handleToggleFavorite(song)} + /> +
+
+
+ )} + emptyTitle="No songs found" + emptyMessage="This artist has no songs in the catalog" + />