Changeset d1ee039 for frontend/src/pages
- Timestamp:
- 02/15/26 23:28:14 (5 months ago)
- Branches:
- main
- Children:
- 615dcee, c807e22
- Parents:
- c8baad1
- Location:
- frontend/src/pages
- Files:
-
- 2 edited
-
LandingPage.tsx (modified) (3 diffs)
-
SongDetail.tsx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/pages/LandingPage.tsx
rc8baad1 rd1ee039 76 76 setOpenPlaylistDropdown(songId); 77 77 } 78 };79 80 const handleCreateNewPlaylist = (songId: number) => {81 console.log(`Creating new playlist for song ${songId}`);82 // TODO: Implement actual playlist creation83 setOpenPlaylistDropdown(null);84 78 }; 85 79 … … 273 267 key={cat.value} 274 268 onClick={() => handleCategorySwitch(cat.value)} 275 className={`px-4 py-1.5 rounded-full text-sm font-medium transition-colors ${269 className={`px-4 py-1.5 rounded-full text-sm font-medium transition-colors cursor-pointer ${ 276 270 searchCategory === cat.value 277 271 ? "bg-[#1db954] text-black" … … 488 482 isOpen={openPlaylistDropdown === song.id} 489 483 onClose={() => setOpenPlaylistDropdown(null)} 490 onCreateNewPlaylist={() =>491 handleCreateNewPlaylist(song.id)492 }493 484 direction="above" 494 485 /> -
frontend/src/pages/SongDetail.tsx
rc8baad1 rd1ee039 117 117 console.error("Error toggling like:", err); 118 118 } 119 };120 121 const handleCreateNewPlaylist = () => {122 console.log(`Creating new playlist for song ${song?.id}`);123 // TODO: actual playlist creation124 setShowPlaylistDropdown(false);125 119 }; 126 120 … … 343 337 isOpen={showPlaylistDropdown} 344 338 onClose={() => setShowPlaylistDropdown(false)} 345 onCreateNewPlaylist={handleCreateNewPlaylist}346 339 direction="below" 347 340 />
Note:
See TracChangeset
for help on using the changeset viewer.
