Ignore:
Timestamp:
02/15/26 00:39:55 (5 months ago)
Author:
Dimitar Arsov <dimitararsov04@…>
Branches:
main
Children:
c8baad1
Parents:
85512ff
Message:

add song to playlist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/pages/MusicalCollection.tsx

    r85512ff rce45c7a  
    2121  const [isLoading, setIsLoading] = useState(true);
    2222  const [error, setError] = useState<string | null>(null);
     23  const [openDropdownSongId, setOpenDropdownSongId] = useState<number | null>(
     24    null,
     25  );
    2326
    2427  const normalizeCollection = (
     
    236239                  index={index + 1}
    237240                  onLikeToggle={() => toggleLike(song.id)}
     241                  isDropdownOpen={openDropdownSongId === song.id}
     242                  onDropdownToggle={setOpenDropdownSongId}
    238243                />
    239244              ))}
Note: See TracChangeset for help on using the changeset viewer.