mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-21 21:16:09 +02:00
fix internal routing, and remove softlocking
This commit is contained in:
@@ -40,7 +40,7 @@ export default function AlbumScreen() {
|
||||
const { key } = useLocalSearchParams<{ key: string }>();
|
||||
const { items: tracks, summary: album, totalCount, loadMore } = useNativeAlbumDetail(key);
|
||||
const currentPath = usePlayerStore((s) => s.currentTrack?.path);
|
||||
const handleBack = useLibraryDetailBack();
|
||||
const { goBack, backLabel } = useLibraryDetailBack();
|
||||
const insets = useSafeAreaInsets();
|
||||
const { scrollY, heroFaded, collapsed, onScroll, scrollEventThrottle, expandedHeight, onHeroBlockLayout } =
|
||||
useDetailCollapse();
|
||||
@@ -154,7 +154,8 @@ export default function AlbumScreen() {
|
||||
</>
|
||||
}
|
||||
disabled={tracks.length === 0}
|
||||
onBack={handleBack}
|
||||
onBack={goBack}
|
||||
backLabel={backLabel}
|
||||
onPlay={() => playFrom(0)}
|
||||
onShuffle={() => void playLibraryQuery({ kind: 'album', albumKey: key }, {
|
||||
shuffle: true,
|
||||
|
||||
Reference in New Issue
Block a user