mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
only show lastfm/listenbrainz if configured
This commit is contained in:
@@ -400,6 +400,7 @@ export const AlbumDetailContent = ({ background, tableRef }: AlbumDetailContentP
|
|||||||
{externalLinks && (lastFM || musicBrainz) ? (
|
{externalLinks && (lastFM || musicBrainz) ? (
|
||||||
<section>
|
<section>
|
||||||
<Group gap="sm">
|
<Group gap="sm">
|
||||||
|
{lastFM && (
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
component="a"
|
component="a"
|
||||||
href={`https://www.last.fm/music/${encodeURIComponent(
|
href={`https://www.last.fm/music/${encodeURIComponent(
|
||||||
@@ -418,7 +419,8 @@ export const AlbumDetailContent = ({ background, tableRef }: AlbumDetailContentP
|
|||||||
}}
|
}}
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
/>
|
/>
|
||||||
{mbzId ? (
|
)}
|
||||||
|
{mbzId && musicBrainz ? (
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
component="a"
|
component="a"
|
||||||
href={`https://musicbrainz.org/release/${mbzId}`}
|
href={`https://musicbrainz.org/release/${mbzId}`}
|
||||||
|
|||||||
@@ -439,6 +439,7 @@ export const AlbumArtistDetailContent = ({ background }: AlbumArtistDetailConten
|
|||||||
{externalLinks && (lastFM || musicBrainz) ? (
|
{externalLinks && (lastFM || musicBrainz) ? (
|
||||||
<section>
|
<section>
|
||||||
<Group gap="sm">
|
<Group gap="sm">
|
||||||
|
{lastFM && (
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
component="a"
|
component="a"
|
||||||
href={`https://www.last.fm/music/${encodeURIComponent(
|
href={`https://www.last.fm/music/${encodeURIComponent(
|
||||||
@@ -456,7 +457,8 @@ export const AlbumArtistDetailContent = ({ background }: AlbumArtistDetailConten
|
|||||||
}}
|
}}
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
/>
|
/>
|
||||||
{mbzId ? (
|
)}
|
||||||
|
{mbzId && musicBrainz ? (
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
component="a"
|
component="a"
|
||||||
href={`https://musicbrainz.org/artist/${mbzId}`}
|
href={`https://musicbrainz.org/artist/${mbzId}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user