mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 11:03:06 +02:00
Fix artist/album artist cells (#117)
This commit is contained in:
@@ -38,6 +38,7 @@ export const AlbumArtistCell = ({ value, data }: ICellRendererParams) => {
|
|||||||
,
|
,
|
||||||
</Text>
|
</Text>
|
||||||
)}{' '}
|
)}{' '}
|
||||||
|
{item.id ? (
|
||||||
<Text
|
<Text
|
||||||
$link
|
$link
|
||||||
$secondary
|
$secondary
|
||||||
@@ -50,6 +51,15 @@ export const AlbumArtistCell = ({ value, data }: ICellRendererParams) => {
|
|||||||
>
|
>
|
||||||
{item.name || '—'}
|
{item.name || '—'}
|
||||||
</Text>
|
</Text>
|
||||||
|
) : (
|
||||||
|
<Text
|
||||||
|
$secondary
|
||||||
|
overflow="hidden"
|
||||||
|
size="md"
|
||||||
|
>
|
||||||
|
{item.name || '—'}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
))}
|
))}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
@@ -38,18 +38,28 @@ export const ArtistCell = ({ value, data }: ICellRendererParams) => {
|
|||||||
,
|
,
|
||||||
</Text>
|
</Text>
|
||||||
)}{' '}
|
)}{' '}
|
||||||
|
{item.id ? (
|
||||||
<Text
|
<Text
|
||||||
$link
|
$link
|
||||||
$secondary
|
$secondary
|
||||||
component={Link}
|
component={Link}
|
||||||
overflow="hidden"
|
overflow="hidden"
|
||||||
size="md"
|
size="md"
|
||||||
to={generatePath(AppRoute.LIBRARY_ARTISTS_DETAIL, {
|
to={generatePath(AppRoute.LIBRARY_ALBUM_ARTISTS_DETAIL, {
|
||||||
artistId: item.id,
|
albumArtistId: item.id,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{item.name || '—'}
|
{item.name || '—'}
|
||||||
</Text>
|
</Text>
|
||||||
|
) : (
|
||||||
|
<Text
|
||||||
|
$secondary
|
||||||
|
overflow="hidden"
|
||||||
|
size="md"
|
||||||
|
>
|
||||||
|
{item.name || '—'}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
))}
|
))}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user