mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-12 05:10:52 +02:00
reorder artist page
This commit is contained in:
@@ -202,17 +202,6 @@ function buildListItems(detail: ArtistDetail): ArtistPageItem[] {
|
||||
return items;
|
||||
}
|
||||
|
||||
items.push({
|
||||
key: 'section-songs',
|
||||
type: 'section',
|
||||
title: 'Songs',
|
||||
trailing: formatCount(detail.songTracks.length, 'track'),
|
||||
target: 'songs',
|
||||
});
|
||||
detail.songTracks.slice(0, SONG_PREVIEW_LIMIT).forEach((track, index) => {
|
||||
items.push({ key: `song-${track.id}`, type: 'track', track, section: 'songs', index });
|
||||
});
|
||||
|
||||
if (detail.albums.length > 0) {
|
||||
items.push({
|
||||
key: 'section-albums',
|
||||
@@ -224,6 +213,17 @@ function buildListItems(detail: ArtistDetail): ArtistPageItem[] {
|
||||
items.push({ key: 'albums', type: 'albums' });
|
||||
}
|
||||
|
||||
items.push({
|
||||
key: 'section-songs',
|
||||
type: 'section',
|
||||
title: 'Songs',
|
||||
trailing: formatCount(detail.songTracks.length, 'track'),
|
||||
target: 'songs',
|
||||
});
|
||||
detail.songTracks.slice(0, SONG_PREVIEW_LIMIT).forEach((track, index) => {
|
||||
items.push({ key: `song-${track.id}`, type: 'track', track, section: 'songs', index });
|
||||
});
|
||||
|
||||
if (detail.showAppearances) {
|
||||
items.push({
|
||||
key: 'section-appearances',
|
||||
|
||||
Reference in New Issue
Block a user