refactor playlist route component organization

This commit is contained in:
jeffvli
2025-11-29 20:05:08 -08:00
parent ad198ea047
commit 24846fbae4
5 changed files with 55 additions and 41 deletions
@@ -41,7 +41,10 @@ interface PlaylistRowButtonProps extends Omit<ButtonProps, 'onContextMenu' | 'on
}
const PlaylistRowButton = ({ item, name, onContextMenu, onPlay, to }: PlaylistRowButtonProps) => {
const url = generatePath(AppRoute.PLAYLISTS_DETAIL_SONGS, { playlistId: to });
const url = {
pathname: generatePath(AppRoute.PLAYLISTS_DETAIL_SONGS, { playlistId: to }),
state: { item },
};
const { t } = useTranslation();
const [isHovered, setIsHovered] = useState(false);