mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
handle notification click link
also correctly handle back on now playing from app open standardize route names
This commit is contained in:
@@ -57,13 +57,13 @@ const ListItem: React.FC<{
|
||||
if (!onPress) {
|
||||
switch (item.itemType) {
|
||||
case 'album':
|
||||
onPress = () => navigation.navigate('AlbumView', { id: item.id, title: item.name })
|
||||
onPress = () => navigation.navigate('album', { id: item.id, title: item.name })
|
||||
break
|
||||
case 'artist':
|
||||
onPress = () => navigation.navigate('ArtistView', { id: item.id, title: item.name })
|
||||
onPress = () => navigation.navigate('artist', { id: item.id, title: item.name })
|
||||
break
|
||||
case 'playlist':
|
||||
onPress = () => navigation.navigate('PlaylistView', { id: item.id, title: item.name })
|
||||
onPress = () => navigation.navigate('playlist', { id: item.id, title: item.name })
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user