feat: add playlist editing functionality; implement PlaylistEditPage and integrate with playlists service
feat: enhance PlaylistsPage with search, sorting, and playlist creation features; improve UI components and state management
This commit is contained in:
@@ -97,10 +97,10 @@ export function CompactPlayer({ className }: CompactPlayerProps) {
|
||||
}
|
||||
}, [state.volume, executeAction])
|
||||
|
||||
// Don't show if no current sound
|
||||
if (!state.current_sound) {
|
||||
return null
|
||||
}
|
||||
// // Don't show if no current sound
|
||||
// if (!state.current_sound) {
|
||||
// return null
|
||||
// }
|
||||
|
||||
return (
|
||||
<div className={cn("w-full", className)}>
|
||||
@@ -150,7 +150,7 @@ export function CompactPlayer({ className }: CompactPlayerProps) {
|
||||
</div>
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="text-sm font-medium truncate">
|
||||
{state.current_sound.name}
|
||||
{state.current_sound?.name || 'No track selected'}
|
||||
</div>
|
||||
<div className="text-xs text-muted-foreground">
|
||||
{state.playlist?.name}
|
||||
|
||||
Reference in New Issue
Block a user