From cc5aaabd7c223bdcedbfe00911ad7fc8e33e4b7c Mon Sep 17 00:00:00 2001 From: jeffvli Date: Thu, 2 Dec 2021 00:16:52 -0800 Subject: [PATCH] Add links to artist/playlist indicator --- src/components/library/ArtistView.tsx | 10 ++++++---- src/components/playlist/PlaylistView.tsx | 15 ++++++++++++--- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/components/library/ArtistView.tsx b/src/components/library/ArtistView.tsx index 3aa5a3a..0661156 100644 --- a/src/components/library/ArtistView.tsx +++ b/src/components/library/ArtistView.tsx @@ -42,7 +42,7 @@ import { getPlayedSongsNotification, isCached, } from '../../shared/utils'; -import { StyledButton, StyledPopover, StyledTag } from '../shared/styled'; +import { StyledButton, StyledLink, StyledPopover, StyledTag } from '../shared/styled'; import { setStatus } from '../../redux/playerSlice'; import { GradientBackground, PageHeaderSubtitleDataLine } from '../layout/styled'; import { apiController } from '../../api/controller'; @@ -365,9 +365,11 @@ const ArtistView = ({ ...rest }: any) => { showTitleTooltip subtitle={ <> - - ARTIST • {data.albumCount} albums • {artistSongTotal} songs •{' '} - {artistDurationTotal} + + history.push(`/library/artist`)}> + ARTIST + {' '} + • {data.albumCount} albums • {artistSongTotal} songs, {artistDurationTotal} { subtitle={
- PLAYLIST • {data.songCount} songs • {formatDuration(data.duration)}{' '} - • {data.public ? 'Public' : 'Private'} + history.push('/playlist')}> + PLAYLIST + {' '} + • {data.songCount} songs, {formatDuration(data.duration)} •{' '} + {data.public ? 'Public' : 'Private'} {data.owner && `By ${data.owner} • `}