Skip to content

Commit

Permalink
feat: fix some navigation links
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Jul 22, 2021
1 parent 1a72174 commit 0cff12d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion firstfm/Views/Artist/TopArtistTracksView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct TopArtistTracksView: View {
if !tracks.isEmpty {
ForEach(tracks, id: \.name) { track in
NavigationLink(
destination: Color(.red),
destination: TrackView(track: track),
label: {
TrackRow(track: track)
})
Expand Down
2 changes: 1 addition & 1 deletion firstfm/Views/Profile/ProfileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct ProfileView: View {
if !profile.scrobbles.isEmpty {
ForEach(profile.scrobbles, id: \.name) {track in
NavigationLink(
destination: Color(.blue),
destination: TrackView(track: Track(name: track.name, playcount: "0", listeners: "", url: "", artist: nil, image: track.image)),
label: {
ScrobbledTrackRow(track: track)
})
Expand Down
6 changes: 3 additions & 3 deletions firstfm/Views/Scrobbles/ScrobblesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ struct Scrobbles: View {
VStack {
List(vm.scrobbles) { track in
NavigationLink(
destination: Color(.blue),
destination: TrackView(track: Track(name: track.name, playcount: "0", listeners: "", url: "", artist: nil, image: track.image)),
label: {
ScrobbledTrackRow(track: track)
})
ScrobbledTrackRow(track: track)
})
}.navigationTitle("Your scrobbles").onAppear {
if !scrobblesLoaded {
vm.getUserScrobbles()
Expand Down

0 comments on commit 0cff12d

Please sign in to comment.