feat: updates

This commit is contained in:
qier222 2022-08-22 16:51:23 +08:00
parent ebebf2a733
commit a1b0bcf4d3
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
68 changed files with 4776 additions and 5559 deletions

View file

@ -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}