only show lastfm/listenbrainz if configured

This commit is contained in:
Kendall Garner 2025-06-24 17:58:43 -07:00
parent 5878f89339
commit 8c4a7f4f91
No known key found for this signature in database
GPG key ID: 9355F387FE765C94
2 changed files with 41 additions and 37 deletions

View file

@ -439,24 +439,26 @@ export const AlbumArtistDetailContent = ({ background }: AlbumArtistDetailConten
{externalLinks && (lastFM || musicBrainz) ? (
<section>
<Group gap="sm">
<ActionIcon
component="a"
href={`https://www.last.fm/music/${encodeURIComponent(
detailQuery?.data?.name || '',
)}`}
icon="brandLastfm"
iconProps={{
fill: 'default',
size: 'xl',
}}
rel="noopener noreferrer"
target="_blank"
tooltip={{
label: t('action.openIn.lastfm'),
}}
variant="subtle"
/>
{mbzId ? (
{lastFM && (
<ActionIcon
component="a"
href={`https://www.last.fm/music/${encodeURIComponent(
detailQuery?.data?.name || '',
)}`}
icon="brandLastfm"
iconProps={{
fill: 'default',
size: 'xl',
}}
rel="noopener noreferrer"
target="_blank"
tooltip={{
label: t('action.openIn.lastfm'),
}}
variant="subtle"
/>
)}
{mbzId && musicBrainz ? (
<ActionIcon
component="a"
href={`https://musicbrainz.org/artist/${mbzId}`}