mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
feat: updates
This commit is contained in:
parent
ebebf2a733
commit
a1b0bcf4d3
68 changed files with 4776 additions and 5559 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { useNavigate } from 'react-router-dom'
|
||||
import { cx } from '@emotion/css'
|
||||
import { openContextMenu } from '@/web/states/contextMenus'
|
||||
|
||||
const ArtistInline = ({
|
||||
artists,
|
||||
|
|
@ -37,6 +38,16 @@ const ArtistInline = ({
|
|||
<span key={`${artist.id}-${artist.name}`}>
|
||||
<span
|
||||
onClick={() => handleClick(artist.id)}
|
||||
onContextMenu={event => {
|
||||
openContextMenu({
|
||||
event,
|
||||
type: 'artist',
|
||||
dataSourceID: artist.id,
|
||||
options: {
|
||||
useCursorPosition: true,
|
||||
},
|
||||
})
|
||||
}}
|
||||
className={cx(!!artist.id && !disableLink && hoverClassName)}
|
||||
>
|
||||
{artist.name}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue