feat(discovery-v2): wire add-to-playlist + songlink share to album quick menu
Completes the AlbumQuickMenu surface with the two remaining actions the
parent already passes through Props but Discovery hadn't been forwarding:
- Add to Playlist (onAddAlbumToPlaylist → onAddToPlaylist on the
menu): opens the parent's add-to-playlist modal.
- Share Songlink (onAlbumShareSonglink → onShareSonglink): copies the
Songlink URL to the clipboard via the parent's existing flow.
i18n: adds `actions.shareSonglink` ("Share (Songlink)") across the five
locales. `actions.addToPlaylist` already existed and is reused. The two
actions render only when the corresponding callback is passed, so cards
on sections that don't wire them (no current case) silently omit the
items.
Reuses the same AlbumQuickMenu instance — no new component, just two
extra optional props forwarded through AlbumCardLite. This sets up the
shared menu surface that the upcoming AlbumRowLite kebab will reuse for
the Top Albums section, avoiding duplicate menu logic across cards.
cc
This commit is contained in:
8 files changed
+24
-1
No files matched your search
@@ -85,6 +85,7 @@
|
||||
"expand": "Expandir barra lateral",
|
||||
"moreOptions": "Mais opções",
|
||||
"shareQobuz": "Compartilhar (Qobuz)",
|
||||
"shareSonglink": "Compartilhar (Songlink)",
|
||||
"refreshOfflineCopy": "Atualizar cópia offline",
|
||||
"albumCredits": "Créditos do álbum",
|
||||
"startArtistRadio": "Iniciar Rádio do Artista",
|
||||
|
||||
Reference in new issue
Block a user