mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
add context menu to left controls
This commit is contained in:
@@ -164,7 +164,19 @@ export const LeftControls = () => {
|
|||||||
{isSongDefined && (
|
{isSongDefined && (
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
icon="ellipsisVertical"
|
icon="ellipsisVertical"
|
||||||
// onClick={(e) => handleGeneralContextMenu(e, [currentSong!])}
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
if (currentSong) {
|
||||||
|
ContextMenuController.call({
|
||||||
|
cmd: {
|
||||||
|
items: [currentSong],
|
||||||
|
type: LibraryItem.SONG,
|
||||||
|
},
|
||||||
|
event: e,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}}
|
||||||
size="xs"
|
size="xs"
|
||||||
styles={{
|
styles={{
|
||||||
root: {
|
root: {
|
||||||
|
|||||||
Reference in New Issue
Block a user