mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 19:01:40 +00:00
Set row play button to switch to song on queue lists
This commit is contained in:
parent
a00385e78f
commit
a8b3944c66
3 changed files with 25 additions and 2 deletions
|
|
@ -59,7 +59,13 @@ const StyledImage = styled(SimpleImg)`
|
|||
}
|
||||
`;
|
||||
|
||||
export const CombinedTitleCell = ({ value, rowIndex, node, context }: ICellRendererParams) => {
|
||||
export const CombinedTitleCell = ({
|
||||
value,
|
||||
rowIndex,
|
||||
node,
|
||||
context,
|
||||
data,
|
||||
}: ICellRendererParams) => {
|
||||
const artists = useMemo(() => {
|
||||
if (!value) return null;
|
||||
return value.artists?.length ? value.artists : value.albumArtists;
|
||||
|
|
@ -114,8 +120,10 @@ export const CombinedTitleCell = ({ value, rowIndex, node, context }: ICellRende
|
|||
</Center>
|
||||
)}
|
||||
<ListCoverControls
|
||||
context={context}
|
||||
itemData={value}
|
||||
itemType={context.itemType}
|
||||
uniqueId={data?.uniqueId}
|
||||
/>
|
||||
</ImageWrapper>
|
||||
<MetadataWrapper>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue